intermodal/benches/hasher.rs

14 lines
296 B
Rust
Raw Normal View History

use criterion::{criterion_group, criterion_main, Criterion};
use imdl::bench::{Bench, HasherBench};
fn bench(c: &mut Criterion) {
let bench = HasherBench::init();
c.bench_function(&bench.name(), |b| b.iter(|| bench.iter()));
}
criterion_group!(benches, bench);
criterion_main!(benches);