benchmark 0.8.0

Nanosecond-precision benchmarking for dev, testing, and production. Zero-overhead core timing when disabled; optional std-powered collectors and zero-dependency metrics (Watch/Timer) for real service observability.
Documentation
1
2
3
4
5
6
7
8
fn main() {
    // Ensure APIs exist and compile in disabled mode (no-default-features)
    let (v, d) = benchmark::time!(1usize + 1usize);
    let (_v2, m) = benchmark::time_named!("add", 1usize + 1usize);
    let _n = d.as_nanos();
    let _nm = m.duration.as_nanos();
    let _ = v;
}