Commit 4e53994
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments