Registry / testing / divan
library0.1.21rscratesunverified

A statistically-comfy benchmarking library for Rust.

# Cargo.toml [dependencies] divan = "0.1.21"
INSTALL
IMPORT
SIG · DIVAN
D
divan
testingrustv0.1.21
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.

Bencher
use divan::Bencher;

Minimal benchmark using Divan's Bencher.

use divan::Bencher; fn main() { divan::main(); } #[divan::bench] fn my_bench(bencher: Bencher) { bencher.bench(|| { // code to benchmark let _ = 2 + 2; }); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.21latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
divan — cargo add divan · libregistry