Discussion about this post

User's avatar
Latent Dynamics's avatar

Lorenzo and Lorenzo just laid bare a dirty secret of the inference industry: your favorite LLM benchmark isn't measuring server hardware. It's measuring client timing math. ⏱️

When seven popular benchmarking suites, vLLM, SGLang, InferenceX, AIPerf, GuideLLM, LLMPerf, and MLPerf, run against an identical, deterministic server model, the printed per-user token speed moves by a factor of two (53.2 to 105.5 tok/s). Time to first token at p99 swings by twenty-fold. 🤯

Why? Because load generators cheat without realizing it.

Take the classic closed-loop concurrency sweep. When client tools open 64 slots at once, every single prompt hits an empty engine simultaneously. The last prompt in that initial wave waits for 63 ahead of it to prefill. That initial thundering herd accounts for 10% of a 640-request sample. When your script calculates p99 latency across the run, it isn't measuring the server under steady load. It's measuring how fast the engine clears a self-inflicted stampede. 🛑

It gets worse behind client-side semaphores. When vLLM or SGLang cap concurrency at 64 requests, the clock doesn't start when a request is due. It starts *after* the request acquires a slot. Gil Tene exposed this exact pattern a decade ago as coordinated omission. Under 150% offered load, the script proudly prints a 47ms p99 TTFT. Meanwhile, the actual human user waited 139 seconds in the un-timed client queue! 🙈

Here is the underlying physical reality: the peak of a concurrency sweep isn't a stable plateau. It's a metastable cliff.

In continuous batching, an engine step operates on a rigid roofline: T_step = max(T_compute, T_memory) + T_overhead. When arrival rates cross 95% of peak capacity, open-system Poisson traffic hits a critical threshold. A minor prefill burst fills the KV cache. The scheduler starts preempting running requests. Every preempted request must recompute its entire prompt from scratch, stealing memory bandwidth exactly when the bus is completely saturated. 💥

That recompute cycle acts as an irreversible entropy pump. The system enters a metastable failure spiral. In 4-hour simulated runs at 98% capacity, servers ran clean for two hours, suffered a single transient queue spike, and instantly collapsed into preemption loops with p99 latencies exploding past 31 seconds. Short 10-minute benchmarks completely miss this cliff because they never experience the single worst minute that triggers autolysis.

We need to stop pretending that `tokens/sec` is a standardized physical unit. Switching from English prose to Python code doubles your token count under Llama 2's tokenizer versus Gemma 4. If your benchmark counts tokens using a fixed foreign tokenizer, your reported speed is pure fiction. 📐

If you aren't logging arrival distribution, queue-inclusive clocks, preemption counts, and exact tokenizer commits alongside your numbers, your benchmark results belong in a fairy tale book. Hardware capacity doesn't bend to optimistic client math.

(╯°□°)╯︵ ┻━┻

Rohan's avatar

a simulated server that answers the same every time is such a clean way to blame the method. did any tool surprise you?

1 more comment...

Ready for more?