Skip to content

Commit

Permalink
add benchmarking code
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Sep 3, 2024
1 parent 3933ebd commit f4cfb12
Show file tree
Hide file tree
Showing 950 changed files with 5,130 additions and 2,082 deletions.
28 changes: 20 additions & 8 deletions benchmark/benchmark.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ ifeq ("$(BENCHMARK_PATTERN)a", "a")
BENCHMARK_PATTERN:=.*
endif

ifeq ("$(IO_MODE)a", "a")
IO_MODE:=local
endif


bench-output-dir:
mkdir -p benchmark_results

Expand All @@ -22,10 +27,13 @@ plot:

# TPCH SF1 on delta table
bench-run-tpch-sf1-delta: bench-output-dir
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpch/sf1-delta/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-delta.csv
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpch/sf1/delta/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-delta.csv
# TPCH SF1 on parquet files
bench-run-tpch-sf1-parquet: bench-output-dir
./build/release/benchmark/benchmark_runner 'benchmark/tpch/sf1-parquet/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-parquet.csv
./build/release/benchmark/benchmark_runner 'benchmark/tpch/sf1/parquet/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-parquet.csv
# TPCH SF1 on duckdb file
bench-run-tpch-sf1-duckdb: bench-output-dir
./build/release/benchmark/benchmark_runner 'benchmark/tpch/sf1/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-duckdb.csv
# COMPARES TPCH SF1 on parquet file vs on delta files
bench-run-tpch-sf1: bench-run-tpch-sf1-delta bench-run-tpch-sf1-parquet

Expand All @@ -35,25 +43,29 @@ bench-run-tpch-sf1: bench-run-tpch-sf1-delta bench-run-tpch-sf1-parquet

# TPCH on remote delta table (set BENCHMARK_DATA_S3_LINEITEM_SF1)
bench-run-tpch-sf1-remote-delta: bench-output-dir
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpch/sf1-delta-remote/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-remote-delta.csv
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpch/sf1/delta-remote/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-remote-delta.csv
# TPCH on remote parquet table (set BENCHMARK_DATA_S3_LINEITEM_SF1)
bench-run-tpch-sf1-remote-parquet: bench-output-dir
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpch/sf1-parquet-remote/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-remote-parquet.csv
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpch/sf1/parquet-remote/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpch-sf1-remote-parquet.csv
# COMPARES TPCH SF1 on parquet file vs on delta files
bench-run-tpch-sf1-remote: bench-run-tpch-sf1-remote-parquet bench-run-tpch-sf1-remote-delta

###
# TPCDS LOCAL
# TPCDS
###

# TPCDS SF1 on delta table
bench-run-tpcds-sf1-delta: bench-output-dir
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpcds/sf1-delta/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpcds-sf1-delta.csv
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpcds/sf1/$(IO_MODE)/delta/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpcds-sf1-delta-$(IO_MODE).csv
# TPCDS SF1 on parquet files
bench-run-tpcds-sf1-parquet: bench-output-dir
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpcds/sf1-parquet/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpcds-sf1-parquet.csv
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpcds/sf1/$(IO_MODE)/parquet/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpcds-sf1-parquet-$(IO_MODE).csv
# TPCDS SF1 on duckdb files
bench-run-tpcds-sf1-duckdb: bench-output-dir
./build/release/benchmark/benchmark_runner --root-dir './' 'benchmark/tpcds/sf1/$(IO_MODE)/duckdb/$(BENCHMARK_PATTERN)' 2>&1 | tee benchmark_results/tpcds-sf1-duckdb-$(IO_MODE).csv

# COMPARES TPCDS SF1 on parquet file vs on delta files
bench-run-tpcds-sf1: bench-run-tpcds-sf1-delta bench-run-tpcds-sf1-parquet
bench-run-tpcds-sf1: bench-run-tpcds-sf1-delta bench-run-tpcds-sf1-parquet bench-run-tpcds-sf1-duckdb

###
# ALL
Expand Down
24 changes: 0 additions & 24 deletions benchmark/tpcds/sf1-delta/load.sql

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q01.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q02.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q03.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q04.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q05.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q06.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q07.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q08.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q09.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q10.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q11.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q12.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q13.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q14.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q15.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q16.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q17.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q18.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q19.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q20.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q21.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q22.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q23.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q24.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q25.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q26.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q27.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q28.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q29.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q30.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q31.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q32.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q33.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q34.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q35.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q36.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q37.benchmark

This file was deleted.

7 changes: 0 additions & 7 deletions benchmark/tpcds/sf1-delta/q38.benchmark

This file was deleted.

Loading

0 comments on commit f4cfb12

Please sign in to comment.