Calculating and presenting benchmarks

Python pytest has a great plugin benchmark (https://pypi.org/project/pytest-benchmark/) which enables a very easy setting up of a comparative benchmark of functions where the framework runs each function many times for many different data input and outputs a table of results to the console.

Does Rust have anything at all similar?

The one I see mentioned most often is

2 Likes

For macro benchmarks (comparing binaries basically), I also highly recommend https://github.com/sharkdp/hyperfine

4 Likes

I use the built-in Bencher, and cargo-benchcmp.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.