Explain hypothesis for batch size 1 helping

This commit is contained in:
2025-08-26 17:08:20 -04:00
parent c915fed4cc
commit dabead7d6b

View File

@@ -43,6 +43,8 @@ WeaselDB achieved 1.3M requests/second throughput using a two-stage ThreadPipeli
**Stage-0 Batch Size Optimization**:
- **Changed**: Stage-0 max batch size from unlimited to 1
- **Mechanism**: Single-item processing checks for work more frequently, keeping the thread in fast coordination paths instead of expensive spin/wait cycles
- **Profile evidence**: Coordination overhead reduced from ~11% to ~5.6% CPU time
- **Result**: Additional 12.7% increase in serial CPU budget (488ns → 550ns)
- **Overall improvement**: 38.9% increase from baseline (396ns → 550ns)