You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I did a lot of benchmarks for measuring Profile-Guided Optimization (PGO) effects on different projects (including some libraries) - the results are available here. So I decided to test PGO with tonic as well.
My test setup is a Macbook M1 Pro, macOS 13.4 Ventura. All tests are done on the same hardware. Rust version - 1.72. The PGO optimization is done with cargo-pgo. As a training and evaluation set I use Tonic decode benchmarks. All measurements are done multiple times (and chosen with less variation - but they are pretty much the same between runs, to be honest), and the background load was kept the same (as much as I can guarantee on macOS, ofc). The results are the following.
Hi!
Recently I did a lot of benchmarks for measuring Profile-Guided Optimization (PGO) effects on different projects (including some libraries) - the results are available here. So I decided to test PGO with
tonic
as well.My test setup is a Macbook M1 Pro, macOS 13.4 Ventura. All tests are done on the same hardware. Rust version - 1.72. The PGO optimization is done with cargo-pgo. As a training and evaluation set I use Tonic
decode
benchmarks. All measurements are done multiple times (and chosen with less variation - but they are pretty much the same between runs, to be honest), and the background load was kept the same (as much as I can guarantee on macOS, ofc). The results are the following.Tonic Release (
cargo bench
):Tonic Release + PGO instrumentation (
cargo pgo bench
), posting these numbers so you can evaluate how Tonic is slow with PGO instrumentation:Tonic Release + PGO optimized (
cargo pgo optimize bench
):This information can be helpful:
Probably would be a good idea to mention PGO somewhere in the Tonic documentation/README/Wiki .
The text was updated successfully, but these errors were encountered: