blob: 04d43fb50aceda8d52693bf2599788ea8ae1001d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
fn run_benches(c: &mut Criterion) {
for size in [10_000, 30_000, 60_000].iter() {
c.bench_with_input(
BenchmarkId::new("example_mapping-insert_get", size),
size,
|b, &n| {
b.iter(|| example_mapping::insert_get(n));
},
);
}
}
criterion_group!(benches, run_benches);
criterion_main!(benches);
|