Benchmark support library for Rust
Features
- iterator style
- result analysis
- count, mean, mode
- median, N-percentile (error 1-2%)
- getrusage
- CPU time (usr/sys)
- Memory (RSS usage, min/maj fault, swap)
- I/O (block in/out, message send/recv)
- Context switch (signals, voluntary/involuntary switches)
Usage
Cargo.toml
[]
= "0.1.0"
example
use Benchy;
use Duration;
for i in Benchy.new_duration
// auto print result to stdout (5 secs after)
let mut bench = Benchy.new_duration;
for i in bench
// show detailed result (5 secs after)
println!;
println!;
println!;
println!;
// rusage difference (end - start)
println!;