Profile-Guided Optimization (PGO) benchmark report #27
-
Hi! Thanks a lot for the library! It's not exactly the question - just a benchmark report. Since no other categories are available in Discussions, I decided to report it here. Feel free to move it to another place if you want ;) As I have done many times before, I decided to test the Profile-Guided Optimization (PGO) technique to optimize the library performance. For reference, results for other projects are available at https://github.com/zamazan4ik/awesome-pgo . Since PGO helped a lot for many other libraries, I decided to apply it on Test environment
BenchmarkFor benchmark purposes, I use built-in into the project benchmarks. For PGO optimization I use cargo-pgo tool. Release bench results I got with
ResultsI got the following results:
According to the results, PGO measurably improves the libraries' performance in many cases. Further stepsI understand that the steps above can be time-consuming and hard to implement in practice. At the very least, the library's users can find this performance report and decide to enable PGO for their applications if they care about Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks! Can you share a comparison of the benchmarking runs using |
Beta Was this translation helpful? Give feedback.
Sure. Since I didn't use baselines functionality before (just moved around criterion directories - what a shame!) I reran the benchmarks. Here we go ("before" - Release, "after" - PGO optimized):