mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 16:21:07 +00:00
Restore old benchmark names
This commit is contained in:
@ -160,11 +160,9 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) {
|
|||||||
|
|
||||||
for &query in conf.queries {
|
for &query in conf.queries {
|
||||||
for offset in conf.offsets {
|
for offset in conf.offsets {
|
||||||
let parameter = match (query.is_empty(), offset) {
|
let parameter = match offset {
|
||||||
(true, None) => String::from("placeholder"),
|
None => query.to_string(),
|
||||||
(true, Some((offset, limit))) => format!("placeholder[{offset}:{limit}]"),
|
Some((offset, limit)) => format!("{query}[{offset}:{limit}]"),
|
||||||
(false, None) => query.to_string(),
|
|
||||||
(false, Some((offset, limit))) => format!("{query}[{offset}:{limit}]"),
|
|
||||||
};
|
};
|
||||||
group.bench_with_input(
|
group.bench_with_input(
|
||||||
BenchmarkId::from_parameter(parameter),
|
BenchmarkId::from_parameter(parameter),
|
||||||
|
Reference in New Issue
Block a user