internal/planning/library-benchmarking.md
We use max rate benchmarking - each route is tested at maximum throughput to measure its capacity.
RATE=max - Tests maximum throughputCONNECTIONS=10 - Concurrent connectionsDURATION=30s - Test duration per routePros:
Cons:
Pros:
Cons:
Different routes have vastly different capacities:
/empty - ~1500 RPSA fixed rate low enough for all routes would under-utilize fast routes. A per-route fixed rate config would be painful to maintain and would break comparisons when capacity changes.
For library benchmarking in CI, we accept some noise and focus on detecting significant regressions (>15-20%).
Options to improve accuracy if needed: