Skip to content

Commit 4e53994

Browse files
bushidocodesclaude
andauthored
chore: make workload_mix_realworld experiment params env-overridable (#396)
The performance test in workload_mix_realworld/run.sh hardcoded its iteration count, batch size, and worker cap, so tuning a run required editing the script (and produced noise diffs). Bind them from the environment with the existing defaults as fallbacks: local -ir batch_size=${BATCH_SIZE:-1} local -ir total_iterations=${TOTAL_ITERATIONS:-10000} local -ir worker_max=${WORKER_MAX:-50} Behavior is unchanged when the variables are unset. Example: WORKER_MAX=8 TOTAL_ITERATIONS=200 ./run.sh ... Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4bc24ef commit 4e53994

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • tests/workload_mix_realworld

tests/workload_mix_realworld/run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ run_experiments() {
9999
fi
100100

101101
# TODO: Check that workload is in spec.json
102-
local -ir batch_size=1
102+
# Experiment parameters, overridable via environment variables (defaults shown)
103+
local -ir batch_size=${BATCH_SIZE:-1}
103104
local -i batch_id=0
104105
local -i roll=0
105-
local -ir total_iterations=10000
106-
local -ir worker_max=50
106+
local -ir total_iterations=${TOTAL_ITERATIONS:-10000}
107+
local -ir worker_max=${WORKER_MAX:-50}
107108
local pids
108109

109110
printf "Running Experiments: "

0 commit comments

Comments
 (0)