Commit 5745f74
fix: Forward duration flag to spawned server in blocking runner
The blocking benchmark runner always passed --msg-count (returning 0
in duration mode) to the spawned server process, never forwarding -d.
This caused server/client config divergence in duration-based blocking
benchmarks — the server would receive --msg-count 0 while the client
ran for a specific duration.
Now mirrors the async runner's logic:
- If config.duration is set, pass -d <seconds>
- Otherwise if config.msg_count is set, pass --msg-count <count>
- Otherwise pass neither (server uses defaults)
Fixes #121
AI-assisted-by: Claude Opus 4.6
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d586320 commit 5745f74
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
446 | 452 | | |
447 | 453 | | |
448 | 454 | | |
| |||
0 commit comments