mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-03 17:36:29 +00:00 
			
		
		
		
	let criterion decide how much iteration it wants to do in 10s
This commit is contained in:
		@@ -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| {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user