Explain hypothesis for batch size 1 helping
This commit is contained in:
@@ -43,6 +43,8 @@ WeaselDB achieved 1.3M requests/second throughput using a two-stage ThreadPipeli
|
|||||||
|
|
||||||
**Stage-0 Batch Size Optimization**:
|
**Stage-0 Batch Size Optimization**:
|
||||||
- **Changed**: Stage-0 max batch size from unlimited to 1
|
- **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)
|
- **Result**: Additional 12.7% increase in serial CPU budget (488ns → 550ns)
|
||||||
- **Overall improvement**: 38.9% increase from baseline (396ns → 550ns)
|
- **Overall improvement**: 38.9% increase from baseline (396ns → 550ns)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user