Skip to content

Glossary: Rust in Practice

benchmark

Also written: benchmarks, bench

A measurement that runs code many times and reports how long one run takes, with statistics. In Rust the `criterion` crate is the usual tool, for example to compare a slow and a fast version of the same function.

Where the book teaches it

Related terms

criterionblack_box