CheckOps home

Tools directory

C

CheckOps

Criterion.rs

Criterion.rs is a statistics-driven Rust microbenchmarking library, a port of Haskell's Criterion, that stores results between runs to detect regressions and measure optimisations; development has moved to a new criterion-rs organisation.

Visit website

Latest public signals

Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.

Visit Website

Introduction

Criterion.rs is a statistics-driven micro-benchmarking tool for Rust, ported from Haskell’s Criterion library. Benchmarks collect and store statistical information from run to run and can automatically detect performance regressions as well as measure optimisations.

It is one of the most widely used Rust benchmarking libraries and the format many tools understand; for example, Bencher has a dedicated rust_criterion adapter. The original repository notes that, because the original maintainer has been unavailable for extended periods, active development has moved to a new Criterion-rs organisation, where new PRs and issues should go. The book documents configuration, including cargo-criterion.

Whatever tool you choose, benchmark results are only useful if they are stable. Pin the hardware or runner, run enough iterations to make variance visible, and treat a single noisy result as a reason to rerun, not to block a merge.

The source code is at bheisler/criterion.rs on GitHub under the Apache-2.0 licence, with about 5,500 stars; the most recent commit was on 29 November 2025.

Features

  1. Statistical analysis: Statistics collected and stored run to run.
  2. Regression detection: Compares with saved baselines.
  3. Optimisation measurement: Quantifies improvements.
  4. cargo bench integration: Standard Rust workflow.

Pros

  1. Ecosystem support: Many tools parse its output.
  2. Free to use: Open source under the Apache-2.0 licence, so the core tool costs nothing to use.
  3. Actively maintained: The repository had commits as recent as 29 November 2025.
  4. Community: About 5,500 GitHub stars.

Cons

  1. Maintenance transition: Development moved to a new organisation.
  2. Micro-benchmarks only: Not for whole-system load.
cargo add --dev criterion
[[bench]]
name = "my_benchmark"
harness = false
cargo bench

Resources:

Pricing

Criterion.rs is free and open source under the Apache-2.0 licence.

  1. Rust developers needing rigorous microbenchmarks.

Conclusion

Criterion.rs remains a standard choice for Rust benchmarking.

Follow the new organisation for future releases.

On CheckOps, Criterion.rs is filed under the Performance & load and Unit testing stages. Related tools listed here include cargo-nextest, hyperfine, BenchmarkDotNet, JMH, proptest and cargo-llvm-cov. A short trial on a real project, with your own code, data and pipeline, is usually the fastest way to choose between them, because fit matters more than feature lists. Facts here come from the official site, documentation and repository, checked on 11 November 2026.

Alternatives

Other tools on CheckOps that cover similar ground. Open a page, or compare one with Criterion.rs side by side.