Evaluate using Profile-Guided Optimization (PGO) #273
zamazan4ik
started this conversation in
Ideas
Replies: 1 comment
-
|
Hi, sorry for the late response and thanks for this valuable information. I'm sure there is still room for performance improvements. As soon as I want to work on performance, I will look at your results more closely. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Writing this for the history. Maybe these results will be interesting to someone who trying to achieve better performance with
lingua-rssince the project cares about performance.I test Profile-Guided Optimization (PGO) on different kinds of software - the current results are available here(with a lot of other PGO-related information). That's why I tried to optimize
lingua-rswith PGO too.Test environment
I performed tests on two configurations: Linux and macOS.
Linux:
mainbranch on commit5a1f4980162996319474552e319b211035fdd670Benchmarks
As a benchmark, I use built-in benchmarks with
cargo bench --all-features. For PGO optimization phase, I use cargo-pgo withcargo pgo optimize bench -- --all-features. For PGO training phase, I use the same benchmark withcargo pgo bench -- --all-features.Results
I got the following results:
As you see, in several cases lingua-rs performance can be improved with PGO. I think this information can be written somewhere into the documentation, so users will be aware about PGO effects on Lingua-rs performance and can decide to apply PGO for their Lingua-rs builds.
Beta Was this translation helpful? Give feedback.
All reactions