Apache DataFusion SQL Query Engine
Add topk_tpch benchmark (#16410)
Daniël Heres94fd86ab82aa
diff --git a/benchmarks/README.md b/benchmarks/README.mdindex b19b3385af..01da886ffb 100644--- a/benchmarks/README.md+++ b/benchmarks/README.md@@ -510,6 +510,15 @@ See [`sort_tpch.rs`](src/sort_tpch.rs) for more details../bench.sh run sort_tpch```+### TopK TPCH++In addition, topk_tpch is available from the bench.sh script:++```bash+./bench.sh run topk_tpch+```++## IMDBRun Join Order Benchmark (JOB) on IMDB dataset.diff --git a/benchmarks/bench.sh b/benchmarks/bench.shindex 837e8c6c9b..f1780f8844 100755--- a/benchmarks/bench.sh+++ b/benchmarks/bench.sh@@ -236,6 +236,10 @@ main() {# same data as for tpchdata_tpch "1";;+ topk_tpch)+ # same data as for tpch+ data_tpch "1"+ ;;*)echo "Error: unknown benchmark '$BENCHMARK' for data generation"usage@@ -361,6 +365,9 @@ main() {sort_tpch)run_sort_tpch;;+ topk_tpch)+ run_topk_tpch+ ;;*)echo "Error: unknown benchmark '$BENCHMARK' for run"usage@@ -981,6 +988,16 @@ run_sort_tpch() {debug_run $CARGO_COMMAND --bin dfbench -- sort-tpch --iterations 5 --path "${TPCH_DIR}" -o "${RESULTS_FILE}"}+# Runs the sort tpch integration benchmark with limit 100 (topk)+run_topk_tpch() {+ TPCH_DIR="${DATA_DIR}/tpch_sf1"+ RESULTS_FILE="${RESULTS_DIR}/run_topk_tpch.json"+ echo "RESULTS_FILE: ${RESULTS_FILE}"+ echo "Running topk tpch benchmark..."++ $CARGO_COMMAND --bin dfbench -- sort-tpch --iterations 5 --path "${TPCH_DIR}" -o "${RESULTS_FILE}" --limit 100+}+compare_benchmarks() {BASE_RESULTS_DIR="${SCRIPT_DIR}/results"