What does it actually mean when a vendor claims its inference stack hits 3,000 tokens per second? The honest answer is: almost nothing until you know what was measured, how big the batches were, how long the prompts ran, and which GPU was doing the work. LLM throughput benchmarking is the discipline of pinning all of that down so numbers can be compared instead of admired.
This article walks through what throughput really measures, why published figures so often fall apart in production, and how to run benchmarks that survive contact with real traffic.
What Throughput Actually Measures
Throughput answers one question: how much work gets finished per unit of time? For large language models, “work” can mean several different things, and that ambiguity is where most confusion starts.
The two most common metrics are output tokens per second (generation speed, the rate at which text appears) and total tokens per second (prefill plus generation, sometimes summed across many concurrent requests). A single number without the metric definition and batch size attached cannot be compared with anything. No universal standard fixes these terms, which is why vendor claims and blog posts differ so widely. (Blog)
A serving system can look spectacular on one metric and mediocre on the other. A large batch of short prompts produces enormous aggregate throughput while each individual user waits longer. A batch size of one produces snappy responses and a modest total. Both are true; they describe different products.
Latency and throughput pull in opposite directions. Higher batch sizes generally raise throughput until memory runs out, while latency usually worsens. Any benchmark that reports only one of the two is telling half a story.
Why Benchmark Throughput Differs From Serving Capacity

There is a gap that catches almost everyone: the throughput you measure in a clean benchmark is not the capacity you can actually serve. Benchmark runs typically use fixed input lengths, a single model, no request routing overhead, and warm caches. Production traffic is a mix of prompt lengths, arrivals are bursty, and the scheduler has to make trade-offs in real time.
This distinction is worth understanding in detail, because it explains why a system that benchmarks at 2,000 tokens per second may collapse under concurrent users. A useful breakdown of why benchmark throughput differs from serving capacity covers the mechanisms, from queueing behavior to memory pressure, that separate a lab number from a real deployment.
The practical takeaway: treat benchmark figures as an upper bound on a well-behaved workload, not a promise about yours.
The Metrics That Matter Together
A credible benchmark reports a small cluster of numbers rather than one headline figure.
| Metric | What it captures | Typical use |
|---|---|---|
| Time to first token (TTFT) | Prompt processing and queueing delay | Chat responsiveness |
| Inter-token latency | Speed of streamed output | Reading comfort |
| Output tokens/sec per request | Single-stream generation rate | Interactive apps |
| Total tokens/sec at batch N | Aggregate system throughput | Capacity planning |
| Requests/sec at SLA | Completed work under a latency target | Cost modeling |
Notice that only one row is a pure throughput number. The rest constrain it. A system that maximizes aggregate tokens per second by batching aggressively can still fail a time-to-first-token target, and that failure is invisible if you only publish throughput.
The best practice is to report throughput at a stated latency budget. “X tokens per second while keeping p99 time to first token under Y milliseconds” is a claim someone can actually evaluate.
What Actually Caps Throughput
Raw compute is rarely the binding constraint in modern serving. KV-cache memory usually is. Every active request holds a cache of keys and values for its context, and that memory grows with sequence length and batch size. Batches can grow until the cache is exhausted, after which throughput plateaus or even falls as the scheduler thrashes.
The PagedAttention paper by Kwon and colleagues, presented at SOSP 2023, explains how KV-cache memory management shapes serving throughput and introduced paged allocation to reduce waste. Readers who want the mechanism in depth can study the PagedAttention paper on arXiv, which is the origin of the memory-management approach most serving frameworks now use.
The second big lever is continuous batching, also called iteration-level scheduling. Instead of waiting for an entire batch to finish, the scheduler swaps requests in and out at every decoding step. This was popularized by the Orca system (Yu et al., OSDI 2022) and is now standard in vLLM, TensorRT-LLM, and Text Generation Inference. Speedups versus static batching are real but workload-dependent, so treat any single multiplier you see quoted as unverified.
Third comes quantization. FP8, INT8, and INT4 weights, plus KV-cache quantization, can raise tokens per second and cut memory use. Whether they help depends on hardware support and how much accuracy loss the application tolerates. A throughput claim that omits precision and hardware is not a claim at all.
How to Benchmark Without Fooling Yourself
Running a benchmark that means something takes more discipline than most people expect. Here is a sequence that works.
- Fix the variables. Record GPU model, driver and CUDA version, framework version, model revision, precision, batch size, and the input/output length distribution. Missing any one of these makes the result hard to reproduce.
- Separate throughput and latency runs. Framework tooling usually keeps these apart for good reason. The vLLM project’s benchmarking documentation explains its throughput and latency scripts and notes that throughput tests use large batches while latency tests use batch size one, which is why the numbers are not interchangeable.
- Use realistic length distributions. Real prompts are not all 512 tokens. Sample from your production logs, or at minimum test a spread of short, medium, and long contexts.
- Warm up before measuring. Compilation, kernel autotuning, and cache population distort the first seconds of any run.
- Run long enough to see steady state. Short bursts hide memory fragmentation and scheduler degradation.
- Report percentiles, not averages. p50 hides the tail that users actually notice.
- Repeat and report variance. A single run is an anecdote.
Common Mistakes
The most frequent error is comparing numbers from different batch sizes. The second is comparing across precisions without saying so. The third is benchmarking a model that has since been updated, which quietly invalidates the result. A fourth, subtler mistake is measuring on an idle machine while production shares the GPU with other workloads. (News)
Another trap: benchmarking prefill-heavy and generation-heavy workloads as if they were the same. Long prompts stress prompt processing; long generations stress token generation. A system tuned for one can look weak on the other.
What Audited Benchmarks Add
Ad-hoc tokens-per-second claims are hard to trust because nobody checks them. That is the gap MLPerf Inference, run by MLCommons, was built to fill. It defines standard scenarios, including Offline, Server, Single-Stream, and Multi-Stream, each with different throughput and latency constraints, and publishes reviewed results in rounds.
The MLCommons MLPerf Inference benchmark page describes the suite, its scenarios, and the rules submissions must follow. Because every submission targets the same accuracy threshold and dataset and is reviewed before publication, MLPerf results are the closest thing the industry has to an audited cross-vendor comparison. If you need to justify a hardware purchase to someone skeptical, this is the evidence to bring.
The trade-off is coverage. MLPerf tests a fixed set of models and workloads, so it may not reflect your specific prompt mix. Use it to compare platforms, then run your own benchmark on your own traffic.
Building a Benchmark You Can Trust
For teams running their own evaluations, a few habits pay off.
Version everything. Store the benchmark script, model hash, container image, and config alongside the results. When numbers move six months later, you will want to know whether the model, the framework, or the hardware changed.
Benchmark the whole path. Include tokenization, request parsing, and any gateway or routing layer. A fast model behind a slow proxy is a slow product.
Test under concurrency. Single-stream numbers flatter every system. Ramp concurrent requests until you hit your latency target, and record where throughput saturates. That saturation point is your real capacity.
Watch memory as well as speed. A configuration that fits at batch 32 and runs out of memory at batch 64 has a hard ceiling worth knowing before launch.
Keep an eye on the wider ecosystem. Serving frameworks change fast, and benchmark methodology changes with them. Following industry news and engineering write-ups helps you spot when a familiar number no longer means what it did, and general blog coverage of serving trends is a reasonable way to stay current without re-reading every release note.
Interpreting Vendor Claims
When someone publishes a throughput figure, run a quick checklist. Does it state the metric definition? The batch size? The hardware? The precision? The input and output lengths? The latency at that throughput? If several answers are missing, the number is marketing rather than measurement.
This is not cynicism. Vendors optimize for the configuration that showcases their strengths, which is a rational thing to do. Your job is to translate their best case into your expected case. A useful rule of thumb: assume your production throughput will land well below the benchmark figure, then verify with a pilot on representative traffic.
Speculative decoding shows the trade-off clearly. It can raise generation throughput by drafting tokens with a smaller model and verifying them in parallel, but gains depend on the acceptance rate and cost extra memory and compute. The speculative decoding paper by Leviathan and colleagues sets out the method and its trade-offs, and it is a good example of why a single speedup number rarely carries over between workloads.
Conclusion
Throughput benchmarking for LLMs is less about producing a big number and more about producing an honest one. The metric definition, batch size, context lengths, precision, and hardware all shape the result, and leaving any of them out turns a measurement into a slogan. Audited suites like MLPerf give you a defensible cross-vendor comparison; your own benchmarks, run on realistic traffic with latency targets attached, tell you what you can actually serve.
The teams that get this right treat benchmarking as an ongoing practice rather than a one-time launch task. They version their configs, report percentiles, and re-run when models or frameworks change. That habit is what turns tokens per second from a vanity metric into a planning tool.
FAQ
What is a good tokens-per-second number for LLM inference?
No universal good number exists, because the answer depends on model size, hardware, batch size, and whether you measure per-request generation speed or aggregate throughput. A small model on one GPU might stream 100 or more output tokens per second for a single user, while a large model batched across many requests can aggregate thousands. Compare figures only when the metric definition, batch size, precision, and hardware all match. (Large language model)
Why do my benchmark results differ from the vendor’s published numbers?
Vendors typically benchmark with optimized batch sizes, fixed input lengths, warm caches, and no competing workloads. Your production traffic has variable prompt lengths, bursty arrivals, and shared hardware. Those differences, plus version drift in the model or framework, usually explain the gap. Re-run the vendor configuration first to confirm the baseline, then measure your own workload.
Does higher batch size always mean higher throughput?
No. Throughput generally rises with batch size until KV-cache memory is exhausted, after which it plateaus or drops as the scheduler struggles. Latency also worsens as batches grow. The sweet spot is the largest batch that still meets your latency target without running out of memory.
What is the difference between throughput and latency in LLM serving?
Throughput measures how much work completes per unit of time, such as total tokens per second across all requests. Latency measures how long a single request takes, including time to first token and inter-token delay. They trade off against each other, which is why credible benchmarks report both and state the latency budget attached to any throughput figure.
How does quantization affect throughput benchmarks?
Quantization to FP8, INT8, or INT4 can raise tokens per second and reduce memory use, but results depend on hardware support and the accuracy loss your application can tolerate. Any throughput claim should state the precision used. Comparing a quantized run against a full-precision run without noting the difference is one of the most common benchmarking mistakes.
Why is MLPerf considered more reliable than ad-hoc benchmarks?
MLPerf Inference defines standard scenarios with fixed accuracy targets and datasets, and submissions are reviewed before publication. That review process makes results comparable across vendors in a way that self-reported tokens-per-second claims are not. It still covers a fixed set of models, so use it for platform comparisons and supplement it with benchmarks on your own traffic.







