Language: Python · Sphere: programming · Category: Performance
Signature: (batch_size: int, baseline_time_per_item: float) → Metrics
Adaptive Batch Size Controller
A module for dynamically adjusting batch sizes based on throughput metrics to optimize processing performance.
When it runs, batch controller guarantees _mk(25.0).throughput == 25.0; got == expected; got == 17 (proven by run).
Checkable constraints:
_mk(25.0).throughput == 25.0Metrics(1, 0.0, 10, 0.0).throughput == 0.0got == expectedc.in_slow_start is still_slowgot == 17c.in_slow_start is Falsegot == expectedc.current_batch_size == 1
- Green-run: ✓ passes (re-run under the extractor's gate)
- Constraint strength: recovery (truth-pinned)
- Independent oracle: ✓ consensus — xlang (validator v1.9)
- Peer review: unreviewed
△ AURA Pattern Library — © Reality Optimizer