Skip to content

Commit

Permalink
Better names for tpch benchmark series (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 authored Aug 12, 2024
1 parent 1bd2ac7 commit e88536b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bench-vortex/benches/tpch_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn benchmark(c: &mut Criterion) {
// Run TPC-H data gen.
let data_dir = DBGen::new(DBGenOptions::default()).generate().unwrap();

let vortex_pushdown_disabled_ctx = runtime
let vortex_no_pushdown_ctx = runtime
.block_on(load_datasets(
&data_dir,
Format::InMemoryVortex {
Expand All @@ -33,15 +33,15 @@ fn benchmark(c: &mut Criterion) {
let parquet_ctx = runtime
.block_on(load_datasets(&data_dir, Format::Parquet))
.unwrap();
let persistent_vortex_ctx = runtime
let vortex_compressed_ctx = runtime
.block_on(load_datasets(
&data_dir,
Format::OnDiskVortex {
enable_compression: true,
},
))
.unwrap();
let persistent_uncompressed_vortex_ctx = runtime
let vortex_uncompressed_ctx = runtime
.block_on(load_datasets(
&data_dir,
Format::OnDiskVortex {
Expand All @@ -54,9 +54,9 @@ fn benchmark(c: &mut Criterion) {
let mut group = c.benchmark_group(format!("tpch_q{q}"));
group.sample_size(10);

group.bench_function("vortex-pushdown-disabled", |b| {
group.bench_function("vortex-in-memory-no-pushdown", |b| {
b.to_async(&runtime).iter(|| async {
vortex_pushdown_disabled_ctx
vortex_no_pushdown_ctx
.sql(&query)
.await
.unwrap()
Expand All @@ -66,7 +66,7 @@ fn benchmark(c: &mut Criterion) {
})
});

group.bench_function("vortex-pushdown-enabled", |b| {
group.bench_function("vortex-in-memory-pushdown", |b| {
b.to_async(&runtime).iter(|| async {
vortex_ctx
.sql(&query)
Expand Down Expand Up @@ -102,9 +102,9 @@ fn benchmark(c: &mut Criterion) {
})
});

group.bench_function("persistent_compressed_vortex", |b| {
group.bench_function("vortex-file-compressed", |b| {
b.to_async(&runtime).iter(|| async {
persistent_vortex_ctx
vortex_compressed_ctx
.sql(&query)
.await
.unwrap()
Expand All @@ -114,9 +114,9 @@ fn benchmark(c: &mut Criterion) {
})
});

group.bench_function("persistent_uncompressed_vortex", |b| {
group.bench_function("vortex-file-uncompressed", |b| {
b.to_async(&runtime).iter(|| async {
persistent_uncompressed_vortex_ctx
vortex_uncompressed_ctx
.sql(&query)
.await
.unwrap()
Expand Down

0 comments on commit e88536b

Please sign in to comment.