mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Fix the benchmarks compilation
This commit is contained in:
parent
d8354f6f02
commit
51c237f9d8
@ -28,7 +28,7 @@ fn bench_search(c: &mut criterion::Criterion) {
|
|||||||
group.bench_with_input(BenchmarkId::from_parameter(query), &query, |b, &query| {
|
group.bench_with_input(BenchmarkId::from_parameter(query), &query, |b, &query| {
|
||||||
b.iter(|| {
|
b.iter(|| {
|
||||||
let rtxn = env.read_txn().unwrap();
|
let rtxn = env.read_txn().unwrap();
|
||||||
let _documents_ids = index.search(&rtxn, query).unwrap();
|
let _documents_ids = index.search(&rtxn).query(*query).execute().unwrap();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user