let criterion decide how much iteration it wants to do in 10s

This commit is contained in:
tamo 2021-04-01 19:27:12 +02:00 committed by Tamo
parent 4fdbfd6048
commit e425f70ef9
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -22,8 +22,7 @@ fn bench_typo(c: &mut criterion::Criterion) {
];
let mut group = c.benchmark_group("typo");
group.sample_size(10);
group.measurement_time(Duration::from_secs(12));
group.measurement_time(Duration::from_secs(10));
for query in &queries {
group.bench_with_input(BenchmarkId::from_parameter(query), &query, |b, &query| {