fn increment()

in histogram/benches/bench.rs [8:17]


fn increment(c: &mut Criterion) {
    let histogram = Histogram::new(0, 10, 30).unwrap();

    let mut group = c.benchmark_group("histogram/increment");
    group.throughput(Throughput::Elements(1));

    group.throughput(Throughput::Elements(1));
    group.bench_function("min", |b| b.iter(|| histogram.increment(1, 1)));
    group.bench_function("max", |b| b.iter(|| histogram.increment(1073741823, 1)));
}