Skip to content

Commit

Permalink
make benchmark comparisons easier
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Nov 30, 2023
1 parent 3dbb1cb commit 2eb78ec
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions crates/re_arrow_store/benches/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2eb78ec

Please sign in to comment.