bma-benchmark
Benchmark for Rust and humans
What is this for
I like testing different libraries, crates and algorithms. I do benchmarks on prototypes almost every day and decided to make a simple dedicated crate for that. Here we go: https://crates.io/crates/bma-benchmark
The benchmark engine is very simple to launch and outputs all required data in a pretty colored readable format.
How to use
Let us create a simple benchmark, using crate macros only:
extern crate bma_benchmark;
use Mutex;
let n = 100_000_000;
let mutex = new;
benchmark_start!;
for _ in 0..n
benchmark_print!;

Pretty cool, isn't it? Let us create more complex staged benchmark and compare e.g. Mutex vs RwLock. Staged benchmarks display a comparison table, if the etalon stage is specified, the table also contains speed difference for all others.
extern crate bma_benchmark;
use ;
let n = 10_000_000;
let mutex = new;
let rwlock = new;
staged_benchmark_start!;
for _ in 0..n
staged_benchmark_finish_current!;
staged_benchmark_start!;
for _ in 0..n
staged_benchmark_finish_current!;
staged_benchmark_print_for!;

Need anything more complex? Check the crate docs and use structures manually.
Enjoy!