Skip to content

Commit c7b93a7

Browse files
Reintroduce BENCH_RESTARTABLE; skip stop/start for no-daemon systems
Embedded-CLI systems (clickhouse-local variants, duckdb, datafusion, sqlite, hyper, chdb, spark variants, etc.) have no-op start/stop and their ./check always succeeds. The unified driver still ran the cold cycle stop -> wait_stopped -> drop_caches -> start -> check on every query, and bench_wait_stopped would burn its full 60s timeout each time because ./check never starts failing. Across the query sweep that's ~25-30 minutes of pure idle wait per benchmark run. Reintroduce BENCH_RESTARTABLE (default yes) as a flag independent of BENCH_DURABLE. When no, bench_run_query and bench_concurrent_qps skip the stop/wait/start/check dance and only drop_caches between queries. Set BENCH_RESTARTABLE=no on the 34 shims whose start/stop are pure no-ops. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent eef79b5 commit c7b93a7

35 files changed

Lines changed: 77 additions & 16 deletions

File tree

chdb-parquet-partitioned/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Thin shim — actual flow is in lib/benchmark-common.sh.
33
export BENCH_DOWNLOAD_SCRIPT="download-hits-parquet-partitioned"
44
export BENCH_DURABLE=yes
5+
export BENCH_RESTARTABLE=no
56
exec ../lib/benchmark-common.sh

chdb/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Thin shim — actual flow is in lib/benchmark-common.sh.
33
export BENCH_DOWNLOAD_SCRIPT="download-hits-csv"
44
export BENCH_DURABLE=yes
5+
export BENCH_RESTARTABLE=no
56
exec ../lib/benchmark-common.sh

chyt/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export YT_USE_HOSTS=0
55
export CHYT_ALIAS="${CHYT_ALIAS:-*ch_public}"
66
export BENCH_DOWNLOAD_SCRIPT=""
77
export BENCH_DURABLE=yes
8+
export BENCH_RESTARTABLE=no
89
exec ../lib/benchmark-common.sh

clickhouse-datalake-partitioned/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# Data is read directly from S3, no local download.
44
export BENCH_DOWNLOAD_SCRIPT=""
55
export BENCH_DURABLE=yes
6+
export BENCH_RESTARTABLE=no
67
exec ../lib/benchmark-common.sh

clickhouse-datalake/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# Data is read directly from S3, no local download.
44
export BENCH_DOWNLOAD_SCRIPT=""
55
export BENCH_DURABLE=yes
6+
export BENCH_RESTARTABLE=no
67
exec ../lib/benchmark-common.sh

clickhouse-parquet-partitioned/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Thin shim — actual flow is in lib/benchmark-common.sh.
33
export BENCH_DOWNLOAD_SCRIPT="download-hits-parquet-partitioned"
44
export BENCH_DURABLE=yes
5+
export BENCH_RESTARTABLE=no
56
exec ../lib/benchmark-common.sh

clickhouse-parquet/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Thin shim — actual flow is in lib/benchmark-common.sh.
33
export BENCH_DOWNLOAD_SCRIPT="download-hits-parquet-single"
44
export BENCH_DURABLE=yes
5+
export BENCH_RESTARTABLE=no
56
exec ../lib/benchmark-common.sh

datafusion-partitioned/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
# Thin shim — actual flow is in lib/benchmark-common.sh.
33
export BENCH_DOWNLOAD_SCRIPT="download-hits-parquet-partitioned"
44
export BENCH_DURABLE=yes
5+
export BENCH_RESTARTABLE=no
56
exec ../lib/benchmark-common.sh

datafusion-vortex-partitioned/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# query_bench (the vortex driver) handles its own dataset download/conversion.
44
export BENCH_DOWNLOAD_SCRIPT=""
55
export BENCH_DURABLE=yes
6+
export BENCH_RESTARTABLE=no
67
exec ../lib/benchmark-common.sh

datafusion-vortex/benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# clickbench (the vortex driver) handles its own dataset download/conversion.
44
export BENCH_DOWNLOAD_SCRIPT=""
55
export BENCH_DURABLE=yes
6+
export BENCH_RESTARTABLE=no
67
exec ../lib/benchmark-common.sh

0 commit comments

Comments
 (0)