From 4eb0a2a0e2e22a5df87cc72f31014959558c6ce7 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Thu, 30 Nov 2023 10:41:52 +0100 Subject: [PATCH] make benchmark comparisons easier --- crates/re_arrow_store/benches/gc.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/re_arrow_store/benches/gc.rs b/crates/re_arrow_store/benches/gc.rs index 46ae9fec939d..c0ab4b6a4bdf 100644 --- a/crates/re_arrow_store/benches/gc.rs +++ b/crates/re_arrow_store/benches/gc.rs @@ -112,7 +112,11 @@ fn plotting_dashboard(c: &mut Criterion) { for &num_rows_per_bucket in num_rows_per_bucket() { for &gc_batching in gc_batching() { group.bench_function( - format!("bucketsz={num_rows_per_bucket}/gc_batching={gc_batching}"), + if !gc_batching { + format!("bucketsz={num_rows_per_bucket}") + } else { + format!("bucketsz={num_rows_per_bucket}/gc_batching=true") + }, |b| { let store = build_store( DataStoreConfig { @@ -188,7 +192,11 @@ fn timeless_logs(c: &mut Criterion) { for &num_rows_per_bucket in num_rows_per_bucket() { for &gc_batching in gc_batching() { group.bench_function( - format!("bucketsz={num_rows_per_bucket}/gc_batching={gc_batching}"), + if !gc_batching { + format!("bucketsz={num_rows_per_bucket}") + } else { + format!("bucketsz={num_rows_per_bucket}/gc_batching=true") + }, |b| { let store = build_store( DataStoreConfig {