Skip to content

Commit

Permalink
Fewer benches (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn authored Nov 14, 2024
1 parent 34459fb commit 8214b78
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions bench-vortex/benches/tpch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ fn benchmark(c: &mut Criterion) {
// Run TPC-H data gen.
let data_dir = DBGen::new(DBGenOptions::default()).generate().unwrap();

let vortex_no_pushdown_ctx = runtime
.block_on(load_datasets(
&data_dir,
Format::InMemoryVortex {
enable_pushdown: false,
},
))
.unwrap();
let vortex_ctx = runtime
.block_on(load_datasets(
&data_dir,
Expand All @@ -43,33 +35,11 @@ fn benchmark(c: &mut Criterion) {
},
))
.unwrap();
let vortex_uncompressed_ctx = runtime
.block_on(load_datasets(
&data_dir,
Format::OnDiskVortex {
enable_compression: false,
},
))
.unwrap();

for (q, sql_queries) in tpch_queries() {
let mut group = c.benchmark_group(format!("tpch_q{q}"));
group.sample_size(10);

group.bench_function("vortex-in-memory-no-pushdown", |b| {
b.to_async(&runtime).iter(|| async {
run_tpch_query(
&vortex_no_pushdown_ctx,
&sql_queries,
q,
Format::InMemoryVortex {
enable_pushdown: false,
},
)
.await;
})
});

group.bench_function("vortex-in-memory-pushdown", |b| {
b.to_async(&runtime).iter(|| async {
run_tpch_query(
Expand Down Expand Up @@ -109,20 +79,6 @@ fn benchmark(c: &mut Criterion) {
.await;
})
});

group.bench_function("vortex-file-uncompressed", |b| {
b.to_async(&runtime).iter(|| async {
run_tpch_query(
&vortex_uncompressed_ctx,
&sql_queries,
q,
Format::OnDiskVortex {
enable_compression: false,
},
)
.await;
})
});
}
}

Expand Down

0 comments on commit 8214b78

Please sign in to comment.