Registry / testing / microbench

microbench

JSON →
library0.5.0rscratesunverified

A micro-benchmarking library for Rust.

# Cargo.toml [dependencies] microbench = "0.5.0"
INSTALL
IMPORT
SIG · MICROBENCH
M
microbench
testingrustv0.5.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.

bench
use microbench::bench;

Benchmarks a simple addition operation.

use microbench::bench; fn main() { let elapsed = bench(|| { let _ = 2 + 2; }); println!("Elapsed: {:?}", elapsed); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
microbench — cargo add microbench · libregistry