Skip to content

Commit 1dfc2f8

Browse files
committed
minor: Allow to run TPCH bench for a specific query
1 parent 51e7ec0 commit 1dfc2f8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

benchmarks/bench.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ usage() {
4343
Orchestrates running benchmarks against DataFusion checkouts
4444
4545
Usage:
46-
$0 data [benchmark] [query_number]
46+
$0 data [benchmark] [query]
4747
$0 run [benchmark]
4848
$0 compare <branch1> <branch2>
4949
$0 venv
@@ -410,6 +410,7 @@ run_tpch() {
410410
RESULTS_FILE="${RESULTS_DIR}/tpch_sf${SCALE_FACTOR}.json"
411411
echo "RESULTS_FILE: ${RESULTS_FILE}"
412412
echo "Running tpch benchmark..."
413+
# Optional query filter to run specific query
413414
QUERY=$([ -n "$ARG3" ] && echo "--query $ARG3" || echo "")
414415
$CARGO_COMMAND --bin tpch -- benchmark datafusion --iterations 5 --path "${TPCH_DIR}" --prefer_hash_join "${PREFER_HASH_JOIN}" --format parquet -o "${RESULTS_FILE}" $QUERY
415416
}

0 commit comments

Comments
 (0)