Benchmarking
- I don't think Rust has "full support" for benchmarks without additional packages (yet).
- Benchmark tests (via the
#[bench]macro) are a thing in Nightly Rust, these are good for simple things. - I use criterion.rs for non-trivial benchmarking.
- But there is more available, and you can learn about all of this from the Rust Performance Book.