NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2506 most downloaded on crates.io
Core instrumentation library for CodSpeed
Latest stable
6.0.0
Last release 1 months ago
21 Oct 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 49 of 49 stable releases
2 versions withdrawn
withdrawn after publishing
4 years old
55 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
CodSpeed for Rust 6.0.0 removes a source of measurement noise from your CPU Simulation benchmarks, so you can spend less time investigating unexpected
CodSpeed for Rust 6.0.0 removes a source of measurement noise from your CPU Simulation benchmarks, so you can spend less time investigating unexpected changes in unrelated results.
Your Divan and Criterion benchmarks now run in separate processes. Changes to one benchmark no longer carry allocator state into the benchmarks that follow it, improving consistency as your benchmark suite evolves.
Early results showed lower run-to-run variance, with roughly 70% fewer benchmarks varying by more than 1%. No benchmark code changes required. Your WallTime results are unaffected.
Set CODSPEED_PROCESS_ISOLATION=false to revert to the previous behavior.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v5.0.3...v6.0.0
docs(cargo-codspeed): clarify BENCHNAME and --bench help by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/195
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v5.0.2...v5.0.3
fix(divan): support threaded walltime benchmarks by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/189
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v5.0.1...v5.0.2
fix(divan): bump proc-macro-crate to parse multiline inline tables by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/185
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v5.0.0...v5.0.1
MSRV bumped to 1.85 for all packages: codspeed, codspeed-criterion-compat, codspeed-divan-compat
MSRV bumped to 1.85 for all packages: codspeed, codspeed-criterion-compat, codspeed-divan-compat
This release includes a fix for benchmark URI generation when users do not use the provided macros to declare their criterion main function.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.7.0...v5.0.0
> Note: ignored under CodSpeed simulation mode (single measured iteration). Only takes effect in walltime mode.
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.
-- to bench binaries by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/179iter_manual to have finer control over the iteration loop by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/180Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.6.0...v4.7.0
This release adds first support for macOS walltime.
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.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.5.0...v4.6.0
We now collect buildtime and runtime environment data to warn users about differences in their runtime environment when comparing two runs against one
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.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.4.1...v4.5.0
chore: update documentation URLs and reformat Cargo.toml files, by @adriencaccia
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.4.0...v4.4.1
feat(cargo-codspeed): allow build with multiple modes by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/162
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.3.0...v4.4.0
feat(cargo-codspeed): add internal build mode by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/159
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.2.1...v4.3.0
fix(core): fix inverted boolean condition in warning message by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/158
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.2.0...v4.2.1
feat: rename instrumentation to simulation by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/150
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.1.0...v4.2.0
feat(divan): support counter compatibility with a dummy implementation by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/115
counter compatibility with a dummy implementation by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/115uuid dependency by @larseggert in https://github.com/CodSpeedHQ/codspeed-rust/pull/148Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.0.5...v4.1.0
feat(cargo-codspeed): add explicit mode with command when no benchmarks are found in run by @adriencaccia in https://github.com/CodSpeedHQ/codspeed-ru
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.0.4...v4.0.5
Finally fixes builds with gcc-15 by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/136
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.0.3...v4.0.4
Fix a windows build error by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/134
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.0.2...v4.0.3
fix(codspeed): always compile instrument-hooks (with stubs) by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/132
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.0.1...v4.0.2
fix: build on macos by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/131
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v4.0.0...v4.0.1
ci: add explicit mode after action's breaking change by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/123
This release brings the walltime profiling instrument to codspeed-rust! 🎉
[!TIP] Try it out simply by changing the mode to
walltimein the latest version of the action
Bencher implement Send + Sync by @DaniPopes in https://github.com/CodSpeedHQ/codspeed-rust/pull/116Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v3.0.5...v4.0.0
fix: regression for handling rustflags from .cargo/config.toml by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/114
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v3.0.4...v3.0.5
fix: only show fifo warnings when perf env is present by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/112
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v3.0.3...v3.0.4
tests: cargo-bench should work with the compat layers by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/110
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v3.0.2...v3.0.3
Remove default features from statrs by @konstin in https://github.com/CodSpeedHQ/codspeed-rust/pull/108
statrs by @konstin in https://github.com/CodSpeedHQ/codspeed-rust/pull/108Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v3.0.1...v3.0.2
Fix the Windows build (without introducing any runtime features)
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v3.0.0...v3.0.1
> BREAKING: Make sure to use v3 of the compat layers if you're using the v3 of cargo-codspeed
[!WARNING]
BREAKING: Make sure to use v3 of the compat layers if you're using the v3 ofcargo-codspeed
bench profile: cargo-codspeed now uses the bench profile by default when building, improving performance measurement accuracyblack_box: Cleaned up redundant black_box calls from measurements for better performance (thanks @DaniPopes)chore(cargo-codspeed): bump cargo_metadata to v0.19.2 by @Boshen in https://github.com/CodSpeedHQ/codspeed-rust/pull/94
cargo_metadata to v0.19.2 by @Boshen in https://github.com/CodSpeedHQ/codspeed-rust/pull/94Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.10.0...v2.10.1
feat(cargo-codspeed): support --jobs flag in build command by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/91
--jobs flag in build command by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/91Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.9.1...v2.10.0
feat: add support for all-features and no-default-features by @not-matthias in https://github.com/CodSpeedHQ/codspeed-rust/pull/83
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.8.1...v2.9.1
Nothing published for this version
chore: remove deprecated feature from cargo-codspeed release build by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/76
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.8.0...v2.8.1
This introduces Divan compatibility layer and also Wall Time support. Check out the documentation to try it out here.
This introduces Divan compatibility layer and also Wall Time support. Check out the documentation to try it out here.
cargo-codspeed build targets to different directories between walltime and instrumented by @GuillaumeLagrange in https://github.com/CodSpeedHQ/codspeed-rust/pull/68Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.7.2...v2.8.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
feat: add prebuilt aarch64 binary by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/53
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.7.1...v2.7.2
chore: set MSRV to 1.74 and enforce it in CI by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/52
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.7.0...v2.7.1
feat(cargo-codspeed): allow custom build profile selection by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/49
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.6.0...v2.7.0
feat(cargo-codspeed): support selecting multiple packages by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/43
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.5.1...v2.6.0
fix(cargo-codspeed): fix cargo codspeed crate relative path by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/42
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.5.0...v2.5.1
fix(cargo-codspeed): properly handle working directory with crates and workspaces by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/41
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.4.1...v2.5.0
chore: bump rust to 1.75.0 by @adriencaccia in https://github.com/CodSpeedHQ/codspeed-rust/pull/39
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.4.0...v2.4.1
feat(cargo-codspeed): build all benches in a single cargo build by @adriencaccia in https://github.com/CodSpeedHQ/codspeed-rust/pull/34
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.3...v2.4.0
Avoid creating a breaking change while adding generics to BenchmarkGroup @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/30
criterion-compatBenchmarkGroup @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/30cargo-codspeedcargo-codspeed repository url by @davidhewitt in https://github.com/CodSpeedHQ/codspeed-rust/pull/28Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.2...v2.3.3
feat(criterion): BenchmarkGroup compat with Measurement generic param and plot_config by @sdd in https://github.com/CodSpeedHQ/codspeed-rust/pull/26
BenchmarkGroup compat with Measurement generic param and plot_config by @sdd in https://github.com/CodSpeedHQ/codspeed-rust/pull/26Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.1...v2.3.2
Fixes cargo-codspeed artifact dependencies.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.0...v2.3.1
Fixes cargo-codspeed artifact dependencies.
fix(ci): change the version of the codspeed action to main by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/18
--features vendored-openssl by @Boshen in https://github.com/CodSpeedHQ/codspeed-rust/pull/14Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.2.0...v2.3.0
It's now possible to disable codspeed_criterion_compat default features.
It's now possible to disable codspeed_criterion_compat default features.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.1.0...v2.2.0
Relative paths are now properly handled when using the working-directory action parameter.
working-directory action parameter.Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.0.0...v2.1.0
This is a breaking change and might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features…
AsyncBencher is now supported with the criterion compatibility layer.This is a breaking change and might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🎉!
In some cases, the warmup might optimize out the benchmark. In that case, adding black_box should help, also don't hesitate to open an issue so we can have a look and document the behavior.
We recommend you create a standalone PR to update the package, acknowledge the potential regressions, and merge it to update the baseline on your default branch.
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v1.1.0...v2.0.0
Support the --features build flag by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/2
cargo-codspeed--features build flag by @art049 in https://github.com/CodSpeedHQ/codspeed-rust/pull/2Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v1.0.0...v1.1.0
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v1.0.0...v1.0.1
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/compare/v1.0.0...v1.0.1
## Initial release Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/commits/v1.0.0
Full Changelog: https://github.com/CodSpeedHQ/codspeed-rust/commits/v1.0.0
Nothing published for this version
One column per quarter.