Registry / testing / benchmark-simple

benchmark-simple

JSON →
library0.1.10rscratesunverified

A tiny, super simple and portable benchmarking library for Rust.

# Cargo.toml [dependencies] benchmark-simple = "0.1.10"
INSTALL
IMPORT
SIG · BENCHMARK-SIMPLE
B
benchmark-simple
testingrustv0.1.10
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.

Benchmark
use benchmark_simple::Benchmark;

Runs a simple benchmark on a closure and prints timing results.

use benchmark_simple::Benchmark; fn main() { let bench = Benchmark::new(); let result = bench.run(|| { let _ = 2 + 2; }); println!("{:?}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
benchmark-simple — cargo add benchmark-simple · libregistry