Criterion.rs is a Rust benchmarking library that repeatedly measures code to build statistical confidence in runtime results. It supports reliable microbenchmarks and can connect measurements to flame graphs for locating expensive call paths. section 7.7
Fibonacci implementation comparison
Benchmarking recursive, memoized, and iterative Fibonacci implementations measures approximately 157.7 ns, 44.2 ns, and 5.07 ns respectively, while reporting measurement outliers.


