Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile-Guided Optimization (PGO) results #38

Closed
zamazan4ik opened this issue Aug 8, 2023 · 1 comment
Closed

Profile-Guided Optimization (PGO) results #38

zamazan4ik opened this issue Aug 8, 2023 · 1 comment

Comments

@zamazan4ik
Copy link

Hi!

I did some benchmarks of Profile-Guided Optimization (PGO) on the library and want to share my results here. Test environment is Macbook M1 Pro. The first run was with cargo bench, and the second - with a PGO-optimized version of the library via cargo pgo optimize bench. The PGO profile was collected via cargo pgo bench, the results from this run does not influence the comparison (since I did them in a separate Criterion directory). Link to cargo-pgo - https://github.com/Kobzol/cargo-pgo .

The results of "Release" vs "Release + PGO" are here: https://pastebin.com/kDtPRK2Y . The only regression was found with "Routers/path-tree", other benchmarks are improved or left untouched.

I hope someone can find these results interesting. Maybe would be a good idea to write a note about PGO in README for the users who want to extract more performance from the library.

@ibraheemdev
Copy link
Owner

I'm going to close this for now because PGO is pretty experimental, but I appreciate your findings!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants