
foojay · 20 min readBackend & APIs
The 148 ms was waiting, not work
The piece explains how benchmark latency tails can be misleading due to load‑generator and OS throttling effects, showing that a 148 ms spike was caused by closed‑loop measurement artifacts and CPU cgroup limits rather than JVM pauses. Understanding these factors helps engineers obtain accurate performance data.
- Closed‑loop tools like wrk insert artificial latency when they assume unsent requests, inflating tail values.
- CPU‑quota throttling in shared cgroups can stall the server, creating long pauses unrelated to GC or application logic.
- Open‑loop testing with proper gating isolates the system under test, revealing true latency distribution.