From e425f70ef9ef14ea3242ec5f9e9f18d09d92ea55 Mon Sep 17 00:00:00 2001 From: tamo Date: Thu, 1 Apr 2021 19:27:12 +0200 Subject: [PATCH] let criterion decide how much iteration it wants to do in 10s --- milli/benches/typo.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/milli/benches/typo.rs b/milli/benches/typo.rs index 9fbce8038..1bbe1aecb 100644 --- a/milli/benches/typo.rs +++ b/milli/benches/typo.rs @@ -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| {