Rust Benchmarking
Benchmarking ecosystem in rust reallyyy sucks. Some notes from me
June 25,2025
last update: 2025-06-25
Libraries
Criterion.rs
- Has really good defaults and seems to work out of the box.
- The ecosystem around criterion is really good. purely because criterion has been around for so long
Rust iai
Even though it is supported by a lot of ecosystem tools. It hasn’t been in development for the past 4 years. and bheisler is the creator of criterion, so even more reason to use criterion.
Rust iai-callgrind
Callgrind does not support arm mac yet, despite being worked on for >2 years now.
this issue was quite interesting read about the efforts to providing arm support for valigrind
Divan
Divan is an incredible project that has pretty good defaults as well. It is up and coming so not a lot of ecosystem tools and plugins to use
Services
There is need for services that are outside of these libraries themselves. To store the state of previous runs to make sure there are no performance regressions.