benchmark-simple
A tiny benchmarking library for Rust.
- Trivial to use
- Works pretty much everywhere, including WebAssembly (WASI, but also in-browser)
use *;
let bench = new;
let res = bench.run;
println!;
Throughput computation:
use *;
let mut m = vec!;
let bench = new;
let res = bench.run;
let throughput = res.throughput;
println!;