mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08:00
let criterion decide how much iteration it wants to do in 10s
This commit is contained in:
parent
4fdbfd6048
commit
e425f70ef9
@ -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| {
|
||||
|
Loading…
Reference in New Issue
Block a user