A published Llama benchmark tells you what one serving stack produced under the conditions it held fixed. It does not tell you what your traffic will produce. LLM performance benchmarks are controlled measurements, and the gap between them and production comes from the conditions they hold fixed: serving throughput depends on model variant, quantisation format, kernel, scheduler, prompt length, output length, concurrency, sampling settings and measurement method. To use a benchmark number well, match its conditions to yours, read latency as percentiles rather than averages, and convert throughput into cost only at the operating point that meets your latency target.
For what dashboards show once the system is running, see our piece on APM tools for AI inference and what they miss.
Should a Leaderboard or a Performance Benchmark Drive Our Model or Platform Choice?
Use each for the decision it measures. Inference performance benchmarks measure how fast and efficiently a model runs, through throughput in tokens per second and latency figures such as time to first token, median and P99. BentoML points out that a model ranking highly on a quality leaderboard can still deliver poor results in production if latency is too high or costs are unsustainable.
A public leaderboard helps narrow the model shortlist. A performance benchmark is the input to the platform question: which runtime, which GPU, which provider endpoint, at what concurrency. Quality leaderboards also need reading with care. The Leaderboard Illusion study (2025) found that undisclosed private testing let some providers test several variants before release and keep only the best score, which biases Chatbot Arena results through selective disclosure. The same study identified 27 private variants tested by Meta ahead of the Llama-4 release, and estimated that access to Arena data alone can produce relative gains of up to 112% on the Arena distribution, which rewards overfitting to the Arena rather than general quality.
A quantised endpoint’s absolute benchmark scores do not prove it kept its quality against full precision; that needs a matched baseline endpoint. If the model you will serve is quantised, the leaderboard score of the full-precision model is not its score.
The Metrics in LLM Performance Benchmarks: TTFT, TPOT, Tokens per Second and p95
LLM inference runs in two phases: a prefill phase that processes the whole prompt to produce the first token, and a decode phase that generates the remaining tokens one at a time while reusing earlier context. Prefill is compute-bound and parallel; decode is sequential and memory-bound because of its frequent reads from the KV cache.
| Metric | What it measures | Watch for |
|---|---|---|
| Time to first token (TTFT) | Time from request to first output token, including queuing, prefill and network latency | Grows with prompt length |
| Time per output token (TPOT), also inter-token latency (ITL) | Average time between consecutive generated tokens | GenAI-Perf excludes TTFT from ITL; LLMPerf includes it |
| End-to-end latency | TTFT plus generation time | Hides the split between waiting and streaming |
| Output tokens per second | Throughput, the MLPerf standard because request sizes vary so much | Aggregate server rate is not per-user speed |
| p50 / p90 / p99 latency | The latency at or below which that share of requests complete | Averages hide the stalled requests users remember |
In the single-L20 study’s 24-hour soak of Qwen2.5-72B-Instruct-AWQ, on a fixed short-context workload of about 512 input and 256 output tokens, the server sustained 108.84 aggregate output tokens per second while each individual request decoded at roughly 11 to 15 tokens per second. A headline tokens-per-second figure can describe the box while telling you very little about what one user sees.
A streaming chat application should measure TTFT and p90 latency, while a batch-generation workflow should measure throughput and total completion time. OpenRouter’s guidance for comparing hosted providers is to read latency at p90 or p99 rather than the average, since the tail is what user-facing applications feel, and batch jobs can be judged on p50. A provider with fast TTFT can still feel slow on long answers if its sustained token rate drops, and a high-throughput provider can feel poor in chat if the first token arrives late.
Reference thresholds help anchor what “fast enough” means. MLPerf Inference 5.1 sets TTFT at 2 seconds or less and TPOT at 100 milliseconds or less for the Llama3.1-8B server scenario, and tightens this to 0.5 seconds and 30 milliseconds for its interactive scenario aimed at code assistants and real-time tools. For Llama 2 70B, MLCommons (2024) anchored TPOT at 200 milliseconds on typical human reading speed. These are useful sanity checks for your own SLO, not a substitute for it.
The authors of “On Evaluating Performance of LLM Inference Serving Systems” show Sarathi-Serve beating vLLM at P99 but trailing it around P90 on one summarisation dataset, a trade-off visible only when several percentiles (P50, P90, P99) are reported. For a broader walkthrough of reading each metric, see our guide to LLM inference benchmarks and what they measure for deployment.
Why Production Tokens per Second Rarely Matches the Published Number
Published numbers and production numbers diverge for specific, nameable reasons:
- Non-representative workloads. Evaluations often rely on single-source datasets such as ShareGPT or synthetic prompts averaging around 1,024 tokens, and work cited in that evaluation paper showed that optimising for one workload type can mean up to 2× lower performance on another.
- Sampling settings. On identical hardware processing 1,000 requests, one 2026 study measured 6,767 output tokens per second at temperature 0 against 5,573 at temperature 0.7, a 21% throughput difference from that setting alone.
- The benchmarking client. Single-process Python load generators bottleneck on the Global Interpreter Lock under high concurrency; at 1,000 queries per second they added between 8 milliseconds and 58 seconds of artificial latency, against 0.63 milliseconds for a multi-process client.
- Tool dataset handling. Two tools processing the same ShareGPT dataset at the same rate handled 702,412 and 1,052,100 input tokens respectively, because of how each truncates and samples prompts.
- Uneven tuning. Serving systems expose batch sizes, scheduling policies and resource ratios, and comparing a tuned system against a baseline on default parameters invalidates the comparison. Implementation detail matters too: work cited in the same paper found CPU overheads can account for more than 50% of latency.
- Hosted API context. Artificial Analysis reports provider performance as the median over the past 72 hours from a primary test server in one Google Cloud zone, and notes that location can advantage or disadvantage providers because TTFT includes network latency.
- Different serving behind the same model name. Two providers can expose the same model slug while running it at different precision, which changes speed, cost and behaviour on demanding prompts.
How Do Batching and Cache Behaviour Change My Real Llama Inference Performance?
Batching raises throughput sharply, and it trades against latency. LLM-Inference-Bench measured throughput 26.6 times higher at batch size 64 than at batch size 1 for a 2,048-token length on an A100, because more sequences run at once and fixed costs such as kernel launches are paid once per batch. Runtimes such as vLLM and TensorRT-LLM use continuous batching, admitting requests of different lengths as they arrive instead of waiting for a batch to finish.
The catch is where your real batch size lands. NVIDIA recommends sweeping concurrency from 1 to a little above the engine’s maximum batch size, because beyond that point requests queue, throughput saturates and latency keeps climbing. A benchmark run at a concurrency your traffic never reaches reports throughput you will not get; one run past saturation reports latency you need not suffer. The L20 study shows the latency side plainly: at concurrency 16 its repeated runs averaged a p95 TTFT of 11.91 seconds, which the authors describe as suitable for batch and asynchronous work but not for interactive applications needing sub-second first tokens.
Prefill and decode must be evaluated separately when comparing hardware. A 2026 prefill/decode study of Llama2-7B in FP16 on synthetic workloads found GPUs with up to 39× lower prefill latency than a GroqRack system, while the GroqRack showed 4× lower per-token decode latency, and GPUs regained throughput advantages as batch size grew. The study’s authors note that MLPerf submissions report only aggregate throughput, which leaves those phase trade-offs uncharacterised.
Prefix caching makes TTFT highly variable depending on request order, which is why the 2026 measurement-bias study argues benchmarks should report the enforced cache hit ratio. If your production prompts share long system prompts or retrieved context, your cache hit rate may be far from the benchmark’s, in either direction. Memory pressure is the other face of caching: in the BurstGPT evaluation, bursty real traffic exposed KV cache management inefficiencies that produced memory bottlenecks and spikes in failure rates.
How Do Concurrency, Traffic Mix and Prompt-Length Distribution Change Serving Performance?
The input-to-output ratio changes throughput sharply. LLM-Inference-Bench measured throughput 14.6 times higher for 1,024 input and 128 output tokens than for 128 input and 1,024 output, because input tokens are processed in parallel and output tokens sequentially. Prompt length also moves latency: longer prompts can mean both longer TTFT and slower output speed.
Arrival pattern matters, not just average rate. The BurstGPT authors compared their traces with a more uniform workload at the same requests per second and found the burstier traffic produced higher average latency and throughput, which the authors read as larger resource occupation, and more KV cache management challenges. Optimisations do not reliably carry across traffic types either: a scheduling policy that improved latency for a conversation service did not hold for an API service.
Prompt lengths in production span tens to tens of thousands of tokens, with latency needs ranging from interactive chat to batch summarisation, and real traffic also varies in retries, tool calls and burstiness. The L20 authors are explicit that their short-context results should not be generalised to high-concurrency 8K, 16K or 32K serving, which would need its own workload matrix and soak. That level of candour about scope is what to look for in any benchmark you rely on.
How Should We Read a Llama Benchmark in Practice?
Read it as a statement of the form “under these conditions, this stack produced this distribution”, and check every condition before trusting the result. MLPerf’s Llama 2 70B benchmark uses a question-answering task, chosen over multi-turn dialogue partly because dialogue is hard to measure, and accepts only submissions with a generation length of 294.45 tokens per sample within ±10%. The prefill/decode study gave every request in a batch the same prompt length and forced a fixed output length by ignoring end-of-sequence tokens, and NVIDIA recommends setting ignore_eos to true for consistent measurement. Those choices make measurement consistent. Real traffic, by contrast, varies in prompt length, output length, retries and burstiness.
What Benchmark Conditions Should Match for a Fair GPU or Model Comparison?
Before comparing two Llama results across GPUs, runtimes or models, check that these match (or that you know how they differ):
- Model variant, architecture and precision: GQA models such as Llama 3 8B ran faster than Llama 2 7B at batch size 64 on H100 and A100, and FP8 or Int8 support differs by accelerator.
- Runtime and its version: TensorRT-LLM gave the highest performance on NVIDIA GPUs in LLM-Inference-Bench, while vLLM ran on more hardware but slower.
- Input and output length, or better, the length distribution.
- Concurrency or request rate, and whether the run was past the engine’s batch saturation point.
- Sampling settings, temperature above all.
- Parallelism layout: on four A100s with Llama 3 8B, tensor parallelism was 1.30× faster than a TP=2, PP=2 hybrid and 1.94× faster than pipeline parallelism.
- Tuning parity: both systems tuned, or both on defaults.
- Measurement tool and client architecture, including how ITL is defined.
- Cache hit ratio and truncation limits.
- Reported statistics: the same set of percentiles, such as P50, P90 and P99.
Where these differ, treat the comparison as directional, which is the word the L20 authors use for their own cross-study comparisons. Edge cases have their own readings; local runtimes are covered in our llama.cpp benchmark guide to reading the numbers before porting an LLM.
How Do I Turn a Benchmark’s Throughput and Latency into Cost per Request and p95 for My Own Traffic?
Start from the latency target, not the throughput peak. NVIDIA’s sizing method is to plot throughput against latency, discard every configuration that breaks the latency limit, and pick the highest-throughput point that remains, which is the most economical option. In serving-systems research, throughput gains claimed at operating points with unacceptable tail latency often failed to materialise in practice. Traffic-based capacity planning sizes against planned peak concurrent requests, which is not the same as concurrent users because not every user has a request in flight.
Yearly server cost is the server price divided by its depreciation period, plus yearly software licensing and hosting; cost per 1,000 prompts is that yearly cost divided by the requests one server can serve in a year at 100% uptime, adjusted for actual uptime. Cost per million tokens then splits the per-request cost across input and output tokens using the cost ratio between them, since output tokens take longer to generate.
Worked Example: Pricing the L20 Soak Result
Take the published L20 figures for Qwen2.5-72B-Instruct-AWQ as the input: 108.84 output tokens per second at concurrency 10, with roughly 512 input and a fixed 256 output tokens per request. The steps:
- Requests per second = 108.84 ÷ 256 ≈ 0.425.
- Requests per year at 100% uptime = 0.425 × 31,536,000 seconds ≈ 13.4 million.
- Cost per 1,000 prompts = yearly server cost ÷ about 13,400. Your server, depreciation and hosting figures go in the numerator.
- Cost per million tokens, using the $1 input and $3 output per million example prices in NVIDIA’s table (a 3:1 ratio; substitute your own): per-request cost R = 512 × p(in) + 256 × 3 × p(in) = 1,280 × p(in), so a million input tokens cost about 781 × R and a million output tokens about 2,344 × R.
Now check the latency side. That run’s p95 TTFT was 6.61 seconds and p95 end-to-end latency 23.54 seconds, well beyond the 2-second TTFT of the MLPerf server scenario. The L20 authors describe this profile as useful for batch generation and asynchronous work. For chat it is invalid, because the operating point that meets a chat SLO sits at lower concurrency and lower throughput, and the cost per request rises accordingly.
For cloud pricing and commitments, see our piece on cloud inference cost per request compared across providers. How the model behaves as load changes is the subject of building a load-aware cost-per-request model, and since tokenisers differ between models, so the same text can need different token counts, our note on how a token counter shapes LLM latency and cost is worth reading before comparing per-token prices.
How Should We Use Benchmarks and Leaderboards When Procuring a Model or LLM API?
Use public results to shortlist, then test the shortlist on your own workload. OpenRouter puts it directly: a public leaderboard narrows the candidate set but cannot describe your production path, because it measured selected endpoints at one point in time with its own prompts, parameters, regions and scoring. A sound procurement sequence:
- Define the product behaviour first: TTFT and p90 for streaming chat, throughput and completion time for batch, quality checks and a quantisation review for reasoning-heavy work.
- Shortlist on public leaderboards, discounting for selective disclosure in Arena scores.
- Run prompts representative of your product, including short, long and known-difficult ones.
- Compare at several percentiles such as p50, p90 and p99, not averages.
- Confirm the precision and serving configuration behind each endpoint, since the model slug names the family but the provider path shapes the result.
- Set routing or contract thresholds only after measuring, never before.
Hard-coding one provider from a static ranking is fragile, because provider behaviour varies with traffic, outages and serving configuration. It is also worth knowing what a public benchmark promises. Artificial Analysis requires providers to serve its traffic on the same public configuration ordinary developers get, without reduced batch sizes to inflate per-request speed; that makes its numbers fair across providers, though still a single vantage point rather than your traffic.
When a Public Benchmark Stops Being Enough
Stop relying on public numbers once you are sizing your own deployment or choosing its configuration. At that point the questions are about your batching policy, cache hit rate, prompt distribution and runtime configuration, and no external benchmark measured those. BentoML’s advice is the same from the other direction: finding the right configuration for a use case means running custom benchmarks designed around its throughput, latency and cost trade-offs.
Profile before you optimise. Build the latency profile the measurement-bias study recommends, sweeping load from a baseline rate upward to map your system’s latency against throughput, and use a load generator that cannot become the bottleneck. If the profile points below the serving layer, our guide to profiling GPU kernels to find the real bottleneck covers that step.
TechnoLynx profiles that serving path for AI infrastructure and production SaaS teams, so a benchmark’s tokens per second maps to cost per request under the team’s own batch sizes and sequence lengths.
FAQ
Which LLM Model Should I Use?
Shortlist on quality leaderboards, then choose on how the candidates perform under your own prompts, latency targets and cost limits, because a highly ranked model can still fail in production on latency or cost. Define the workload first and test representative prompts before deciding.