aboutsummaryrefslogtreecommitdiff
path: root/src/tests/example_sets/benches/main.rs
blob: 938fd7c6494b504419d1a3089711d309ea303b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};

fn run_benches(c: &mut Criterion) {
    for size in [10, 500, 1000, 5000].iter() {
        c.bench_with_input(BenchmarkId::new("insert_n", size), size, |b, &n| {
            b.iter(|| example_sets::insert_n(n));
        });
    }
}

criterion_group!(benches, run_benches);
criterion_main!(benches);