codspeed-criterion-compat
Criterion.rs compatibility layer for CodSpeed
5.0.1
7.8M downloads/mo
#3547 most downloaded on crates.io
CodSpeedHQ/codspeed-rust
What this package is like to depend on
Last release 1 months ago
26 Jun 2026
Ships fairly regularly
a new release about every 3 weeks
Rarely documented
notes for 10 of 45 stable releases
1 version withdrawn
withdrawn after publishing
4 years old
50 releases · first in 2023
17 releases in the last 12 months
see the full history below
Release timeline
50 releases · Jan 2023 to Jun 2026Releases
latest 50-
5.0.126 Jun 2026Release notes
Open source →What's Changed
- fix(divan): bump proc-macro-crate to parse multiline inline tables by @GuillaumeLagrange in #185
Full Changelog: v5.0.0...v5.0.1
-
5.0.023 Jun 2026Release notes
Open source →💥 BREAKING
MSRV bumped to 1.85 for all packages:
codspeed,codspeed-criterion-compat,codspeed-divan-compatWhat's Changed
This release includes a fix for benchmark URI generation when users do not use the provided macros to declare their criterion main function.
- fix(criterion-compat): fix URI formatting when criterion_group!/criterion_main! are bypassed by @not-matthias in #169
- Fix lower bound of cc crate by @konstin in #182
- Update colored dep by @rukai in #142
- update getrandom to 0.4 by @Ludea in #177
New Contributors
Full Changelog: v4.7.0...v5.0.0
-
4.7.023 May 2026Release notes
Open source →What's Changed
Manual sampling for criterion
Note: ignored under CodSpeed simulation mode (single measured iteration). Only takes effect in walltime mode.
We introduced a new finer control way of defining a criterion benchmark to have full control over how many times your code is ran.
This bypasses criterion's original sampler, which we still recommend using if you do not have specific control needs.use codspeed_criterion_compat::{criterion_group, criterion_main, Criterion, IterManualOptions}; fn bench_my_function(c: &mut Criterion) { c.bench_function("my_function", |b| { b.iter_manual_unstable( IterManualOptions::new() .rounds(5) // 5 measurement samples, can be lower than criterion's imposed 10 .iters(1000) // 1000 calls per sample .warmup(5), // 5 unmeasured warmup iterations || my_function(), ); }); } criterion_group!(benches, bench_my_function); criterion_main!(benches);
Please note that this API is still under development and may change with future releases.
- fix(cargo-codspeed): forward args after
--to bench binaries by @not-matthias in #179 - chore: bump instrument-hooks by @not-matthias in #178
- feat(criterion-compat): add
iter_manualto have finer control over the iteration loop by @GuillaumeLagrange in #180
Full Changelog: v4.6.0...v4.7.0
- fix(cargo-codspeed): forward args after
-
4.6.028 Apr 2026Release notes
Open source →What's Changed
This release adds first support for macOS walltime.
Please note that profiling and other instruments are not yet available on macOS and will come in a later update.
- Support macos walltime without profiling in codspeed-rust by @GuillaumeLagrange in #176
Full Changelog: v4.5.0...v4.6.0
-
4.5.017 Apr 2026Release notes
Open source →What's Changed
We now collect buildtime and runtime environment data to warn users about differences in their runtime environment when comparing two runs against one another.
This data includes toolchain metadata like version and build options, as well as a list of dynamically loaded linked libraries.
- feat(codspeed): collect Rust toolchain environment at build time by @GuillaumeLagrange in #171
- Bump instrument hooks and collect linked libraries by @GuillaumeLagrange in #173
Full Changelog: v4.4.1...v4.5.0
-
4.4.112 Mar 2026Release notes
Open source →What's changed
- chore: update documentation URLs and reformat Cargo.toml files, by @adriencaccia (378d5f8)
Full Changelog: v4.4.0...v4.4.1
-
4.4.012 Mar 2026Release notes
Open source →What's Changed
- feat(cargo-codspeed): allow build with multiple modes by @not-matthias in #162
- chore(deps): update rust crate nix to 0.31.2 by @xtqqczze in #167
New Contributors
Full Changelog: v4.3.0...v4.4.0
-
4.3.021 Jan 2026Release notes
Open source →What's Changed
- feat(cargo-codspeed): add internal build mode by @not-matthias in #159
- fix: instrument-hooks error in CI by @not-matthias in #161
Full Changelog: v4.2.1...v4.3.0
-
4.2.107 Jan 2026Release notes
Open source →What's Changed
- fix(core): fix inverted boolean condition in warning message by @GuillaumeLagrange in #158
Full Changelog: v4.2.0...v4.2.1
-
4.2.022 Dec 2025Release notes
Open source →What's Changed
- feat: rename instrumentation to simulation by @GuillaumeLagrange in #150
- feat: add support for analysis mode by @not-matthias in #152
Full Changelog: v4.1.0...v4.2.0
-
4.1.007 Nov 2025Nothing published for this version
-
4.0.520 Oct 2025Nothing published for this version
-
4.0.408 Oct 2025Nothing published for this version
-
4.0.307 Oct 2025Nothing published for this version
-
4.0.206 Oct 2025Nothing published for this version
-
4.0.103 Oct 2025Nothing published for this version
-
4.0.002 Oct 2025Nothing published for this version
-
3.0.531 Jul 2025Nothing published for this version
-
3.0.421 Jul 2025Nothing published for this version
-
3.0.311 Jul 2025Nothing published for this version
-
3.0.201 Jul 2025Nothing published for this version
-
3.0.130 Jun 2025Nothing published for this version
-
3.0.030 Jun 2025Nothing published for this version
-
2.10.107 Apr 2025Nothing published for this version
-
2.10.001 Apr 2025Nothing published for this version
-
2.9.110 Mar 2025Nothing published for this version
-
2.8.125 Feb 2025Nothing published for this version
-
2.8.013 Feb 2025Nothing published for this version
-
2.8.0-alpha.312 Feb 2025 pre-releaseNothing published for this version
-
2.8.0-alpha.206 Feb 2025 pre-releaseNothing published for this version
-
2.8.0-alpha.106 Feb 2025 pre-releaseNothing published for this version
-
2.8.0-alpha.005 Feb 2025 pre-releaseNothing published for this version
-
2.7.213 Sep 2024Nothing published for this version
-
2.7.106 Sep 2024Nothing published for this version
-
2.7.005 Sep 2024Nothing published for this version
-
2.6.024 Apr 2024Nothing published for this version
-
2.5.122 Apr 2024Nothing published for this version
-
2.5.022 Apr 2024Nothing published for this version
-
2.4.110 Apr 2024Nothing published for this version
-
2.4.026 Feb 2024Nothing published for this version
-
2.3.320 Nov 2023Nothing published for this version
-
2.3.214 Nov 2023 withdrawnNothing published for this version
-
2.3.123 Oct 2023Nothing published for this version
-
2.3.019 Oct 2023Nothing published for this version
-
2.2.005 Sep 2023Nothing published for this version
-
2.1.027 Jul 2023Nothing published for this version
-
2.0.026 Jul 2023Nothing published for this version
-
1.1.003 Mar 2023Nothing published for this version
-
1.0.111 Jan 2023Nothing published for this version
-
1.0.011 Jan 2023Nothing published for this version