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 options = default;
let res = bench.run;
println!;
Throughput computation:
use *;
let mut m = vec!;
let bench = new;
let options = default;
let res = bench.run;
let throughput = res.throughput;
println!;
Options:
Benchmark results can be made verbose by setting verbose
to true
in the
Options
struct, or by defining a BENCHMARK_VERBOSE
environment variable.