Throughput
How much work a system gets through per second in total - for AI services, often counted as tokens or requests handled each second.
Draft - this entry has not been reviewed yet.
Formal
The rate at which a system completes work, measured as units finished per unit of time, such as requests per second; for a language model service it is usually the total number of tokens produced per second across all users at once.
In plain English
Like counting how many cars cross a bridge each hour - a wider bridge lets more through, even if each car drives no faster.
In practice
An operations engineer at a Danish software house that hosts a chat tool for 30 municipalities measures that its GPU server produces 2,500 tokens a second in total - enough for about 100 users at once - and orders a second server before the Monday-morning peak.
Why it matters
It decides how many machines a service needs and what each answer costs, so it drives the price users pay and how a service copes with sudden crowds.
Technical deep dive
Throughput must always be stated with its unit and its conditions. For LLM services the common units are output tokens per second, total tokens per second (input plus output, which flatters prompt-heavy workloads because prefill processes many tokens in parallel), and requests per second; each can be reported per GPU, per server or per cluster. The figure depends heavily on the workload shape: prompt and output lengths, concurrency, the model and precision, and whether prefix caching hits. Two numbers measured with different input/output ratios are not comparable, which is why benchmark suites fix these parameters. MLPerf Inference, for instance, distinguishes an Offline scenario, which measures raw throughput with all queries available at once, from a Server scenario, which measures the highest query rate sustainable while meeting latency constraints.
The physics of LLM throughput follows from the decode phase being memory-bandwidth-bound. Generating one token for one sequence requires streaming all model weights from HBM; generating one token for 64 sequences in the same step requires reading the weights once and reusing them 64 times. Batching therefore raises aggregate tokens per second nearly linearly until the step becomes compute-bound or KV-cache memory runs out. This is why continuous batching, paged KV-cache management, grouped-query attention and quantization, all of which free memory for more concurrent sequences, are primarily throughput techniques.
Throughput and latency are coupled, not independent. By Little's law, concurrency = throughput × time in system, so for a fixed number of concurrent users, higher throughput means lower latency; but pushing for maximum throughput by growing batches makes each step slower and lengthens queues, raising per-request latency. The usual way to report the trade-off is a curve of throughput against a latency percentile at increasing load, and the operationally relevant point is the maximum throughput at which the latency SLO still holds. The DistServe paper (Zhong et al., 2024) framed serving performance as "goodput": the maximum request rate at which a target share of requests complete within their TTFT and TPOT targets, as opposed to raw tokens per second, which can look excellent while users time out.
Common mistakes include quoting peak vendor numbers measured at unrealistically high batch sizes, confusing throughput with bandwidth (the capacity of a link rather than the useful work completed), measuring with a load generator that is itself the bottleneck, and ignoring the input side, where long prompts consume prefill capacity that never appears in output-token counts. For capacity planning, throughput at the SLO translates directly into cost per million tokens and the number of accelerators needed for peak load.
Relationships
- Don't confuse with
- Latency
Sources & further reading
Reference works
- Kwon et al. (2023), Efficient Memory Management for Large Language Model Serving with PagedAttention
Textbooks
- Hennessy & Patterson, Computer Architecture: A Quantitative Approach (ch. 1) · Morgan Kaufmann
Where this data comes from
This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.
See the review queueSuggest a correction on GitHubThis term as JSON
Check yourself
Loading…