Repository navigation
0.17.0 — batch-dispatch worker protocol
The worker bus goes from per-item work-stealing to batch dispatch: the master hands each
worker up to PYTEST_FAST_BATCH (default 32) test indices per frame and refills as the worker
drains, so workers never block between tests. Results still ship per-item the moment each
completes — a worker crash cannot take completed results down with it (the compact runtime's
exact crash evidence is preserved). Each batch frame carries a lookahead hint (the first item
reserved for that worker's next batch), so the batch's last test runs with its TRUE nextitem:
module/session fixture behavior is identical to per-item dispatch.
Numbers (synthetic 100k sub-ms-test corpus, 6P+6E machine)
| config | wall before | wall after | bus idle before | bus idle after | bus/t before | bus/t after |
|---|---|---|---|---|---|---|
| fast-1w | 27.47s | 20.92s | 5.65s | 0.28s | 56µs | 3µs |
| fast-4w | 7.64s | 5.74s | 6.12s | 0.48s | 61µs | 5µs |
| fast-8w | 6.30s | 3.92s | 15.81s | 1.60s | 158µs | 16µs |
Plain pytest on the same corpus: 47.3s → the engine at 8w is 12.1×. Bus round-trips:
100k → ~3.1k. Batch-size sweep at 4w: 1→7.41s, 4→6.10s, 8→5.86s, 32→5.62s, 128→5.59s —
the knee is at the 32 default (PYTEST_FAST_BATCH=1 restores per-item dispatch).
Dogfood suite: bus 252 → 12 round-trips, wall 7.55s → 6.84s. Unit/parity/stress tiers green.
Full methodology and the verification matrix: PR #16.