From 1bc30cb4c8c5f89fa75e80d83b427ed54fe40e29 Mon Sep 17 00:00:00 2001 From: Mubelotix Date: Tue, 15 Jul 2025 17:34:04 +0200 Subject: [PATCH] Restore old benchmark names --- crates/benchmarks/benches/utils.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/benchmarks/benches/utils.rs b/crates/benchmarks/benches/utils.rs index 93fa7506f..8eb3c344a 100644 --- a/crates/benchmarks/benches/utils.rs +++ b/crates/benchmarks/benches/utils.rs @@ -160,11 +160,9 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) { for &query in conf.queries { for offset in conf.offsets { - let parameter = match (query.is_empty(), offset) { - (true, None) => String::from("placeholder"), - (true, Some((offset, limit))) => format!("placeholder[{offset}:{limit}]"), - (false, None) => query.to_string(), - (false, Some((offset, limit))) => format!("{query}[{offset}:{limit}]"), + let parameter = match offset { + None => query.to_string(), + Some((offset, limit)) => format!("{query}[{offset}:{limit}]"), }; group.bench_with_input( BenchmarkId::from_parameter(parameter),