Throughput, for an LLM serving system: give the working definition
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Throughput is total output tokens per second across all concurrent requests on the server; it drives cost per token and trades off against per-request latency as batch size grows.
Picture a coffee shop. Throughput is how many cups the shop serves per hour across every customer at once. Latency is how long your particular drink takes from order to hand-off. A bigger espresso machine and a larger batch pull raise the shop's hourly capacity but might mean your individual drink waits a bit longer in the queue. An LLM server has the same shape. Throughput counts every output token the server produces per second across all the chats it is handling. Latency is one user staring at their own chat window. Operators and finance teams watch throughput because it sets cost per token. Product designers watch latency because it sets whether the chat feels alive or sluggish. Both metrics are real; they just answer different questions.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define throughput as aggregated output tokens per second across requests, contrast with per-request latency, explain the batching tradeoff and roofline knee, distinguish prefill (compute-bound) from decode (HBM-bound) throughput, and connect to cost per token.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reporting single-stream tokens/sec as system throughput. Single-stream is one request's decode rate; system throughput is summed across every concurrent request on the GPU.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.