Criterion.rs is a statistics-driven micro-benchmarking tool. It is a Rust port of Haskell's Criterion library.
Criterion.rs benchmarks collect and store statistical information from run to run and can automatically detect performance regressions as well as measuring optimizations.
In addition to this book, you may also wish to read the API documentation.
To enable debug output in Criterion.rs, define the environment variable
CRITERION_DEBUG. For example (in bash):
CRITERION_DEBUG=1 cargo bench
This will enable extra debug output. Criterion.rs will also save the gnuplot scripts alongside the generated plot files. When raising issues with Criterion.rs (especially when reporting issues with the plot generation) please run your benchmarks with this option enabled and provide the additional output and relevant gnuplot scripts.