Registry / testing / codspeed-criterion-compat

codspeed-criterion-compat

JSON →
library4.7.0rscratesunverified

Criterion.rs compatibility layer for CodSpeed benchmarking.

# Cargo.toml [dependencies] codspeed-criterion-compat = "4.7.0"
INSTALL
IMPORT
SIG · CODSPEED-CRITERION
C
codspeed-criterion-compat
testingrustv4.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Criterion
use codspeed_criterion_compat::Criterion;

Run a simple benchmark using CodSpeed's Criterion compatibility.

use codspeed_criterion_compat::Criterion; fn main() { let mut c = Criterion::default(); c.bench_function("example", |b| b.iter(|| 1 + 1)); }
Debug
Known issues
gotchaRequires the 'codspeed' feature flag for full functionality.
fix
Add `codspeed-criterion-compat = { version = "4.7.0", features = ["codspeed"] }` to Cargo.toml.
affects: >=4.0.0
Upgrade
Version history
4.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
codspeed-criterion-compat — cargo add codspeed-criterion-compat · libregistry