LLM Inference Performance Evaluation: From Low Concurrency to Production Deployment
Low-concurrency benchmarks reveal only part of an LLM inference system’s production readiness. This article explains how prefill, decoding, memory capacity, communication, and scheduling affect performance as concurrency increases. It also outlines how to compare systems consistently, measure latency and throughput that meet service targets, validate optimizations, and assess the full cost of production deployment.
1. From Running a Model to Reliably Serving a Workload
Validating an LLM inference system involves three distinct stages: running the model correctly, achieving acceptable performance in a controlled environment, and consistently meeting business requirements under real request distributions. Each stage presents different engineering challenges. A single offline benchmark cannot replace comprehensive production validation.
Offline tests typically use fixed input lengths, controlled request patterns, and relatively stable environments. They are useful for identifying operator and communication bottlenecks. Production workloads, however, combine short questions, long documents, multi-turn conversations, traffic bursts, and variable output lengths. Cache hit rates, request queues, and resource contention all affect the final results.
Determining whether inference infrastructure is suitable for production therefore requires more than comparing peak metrics. Three questions matter:
- Can users receive the first output promptly at the target concurrency?
- Is generation smooth, without substantial degradation for requests in the latency tail?
- Is the cost per unit of useful output manageable while service-quality requirements are met?
This distinction explains why two systems can perform similarly at low concurrency yet diverge under heavier loads. Low-concurrency results primarily reflect individual-request execution efficiency. High-concurrency results also test resource utilization, memory capacity, communication efficiency, and scheduling.
2. Understand the Inference Pipeline Before Comparing Performance
2.1 Prefill: Processing the Input Context
Prefill is the stage in which the model processes the input and builds the intermediate state needed for subsequent generation. Longer inputs generally require more computation and memory access.
In many inference systems, prefill can use larger computational batches, making it easier to exploit parallel processing. However, long contexts also increase attention computation and cache occupancy. The actual bottleneck depends on the model architecture, implementation, and hardware configuration. Prefill performance cannot be reduced to compute capability alone.
A key metric is uncached input throughput: the number of new input tokens actually processed per second. If a measurement includes large amounts of cached content, reported input throughput may look impressive without accurately representing the system’s ability to process new inputs.
2.2 Decoding: Generating Output Continuously
Decoding typically generates tokens incrementally. Each step accesses model parameters and the existing context state. At low concurrency, the system may not fully utilize its compute resources, making parameter reads, cache access, and execution scheduling significant contributors to per-request speed.
Increasing concurrency usually improves resource utilization, but it also increases intermediate-state storage and data-access pressure. As batches grow, memory bandwidth, compute capacity, inter-device communication, or scheduling resources may become the bottleneck, reducing per-request generation speed.
Decoding performance should therefore be represented as a relationship among concurrency, per-request speed, and aggregate throughput, rather than as a single number.
2.3 Prefill and Decoding Affect Each Other
In production services, prefill and decoding often share resources. A long-input request may occupy compute resources for an extended period and interfere with requests that are already generating output.
Chunked prefill, phase separation, or finer-grained scheduling can reduce this interference. However, these approaches may introduce communication, state-transfer, or additional resource-management costs. Their effectiveness must be validated end to end, not inferred from isolated tests of one phase.
3. Why Similar Low-Concurrency Speed Does Not Mean Similar Capacity
The source material describes a useful example. In low-concurrency offline tests, two configurations achieved per-request output speeds of approximately 332 and 352 tokens per second, respectively—a ratio of roughly 94%.
In a separate test where both configurations used 64 accelerators, the number of requests per data-parallel replica increased from 8 to 64. One configuration’s per-request speed fell from approximately 332 to 131 tokens per second, while the other maintained approximately 282 tokens per second at the higher concurrency.
These figures are observations under specific test conditions, not universal conclusions about all models or deployments. They nevertheless illustrate a fundamental distinction:
- Low-concurrency tests ask how fast an individual request can run.
- High-concurrency tests ask how many requests a system can serve simultaneously while maintaining a given user experience.
Several factors may explain the divergence:
- Increasing memory-bandwidth pressure. As concurrency grows, the organization of parameter and context-state access becomes more important. Effective bandwidth utilization influences decoding throughput.
- Cache-capacity limits. More requests and longer contexts require more key-value (KV) cache storage, potentially forcing smaller batches or changes to scheduling.
- Greater inter-device communication overhead. When a model is partitioned across accelerators, execution steps may require synchronization or data exchange. Communication topology and the overlap between computation and communication affect scaling efficiency.
- Additional software overhead. Operator fusion, memory allocation, execution scheduling, and data layout can expose problems under high load that are less visible at low concurrency.
Throughput curves alone cannot identify which factor is responsible. Diagnosis requires observations such as compute-unit utilization, memory bandwidth, communication time, and queueing time.
4. Use Consistent Metrics to Avoid Misleading Comparisons
4.1 Per-Request Speed and Per-Accelerator Throughput Are Different Metrics
Per-request output speed measures the generation experience of an individual request, usually in tokens per second. Per-accelerator throughput measures total system output per unit of time divided by the number of accelerators actually used. It is more useful for evaluating resource efficiency.
Under ideal conditions, where requests remain active and generation speeds are approximately stable:
Per-accelerator decoding throughput ≈ Active generation requests × Average per-request output speed ÷ Accelerators used
This equation is an explanatory approximation, not a substitute for measurement. Real systems experience request completion, changing batches, queueing, and pauses. In particular, the number of submitted concurrent requests must not be treated as the number of requests actively generating tokens.
4.2 Comparing at the Same Speed Helps Assess Capacity
If a workload requires each request to generate at or above a specified speed, systems can be compared by the total throughput they support at that threshold.
In the source material, interpolation at approximately 240 tokens per second per request produced estimated per-accelerator decoding throughputs of approximately 6,300 and 20,600 tokens per second for the two configurations.
The important point is the comparison method: hold the user experience constant, then compare serving capacity.
Interpolated values remain estimates. Performance curves may become nonlinear near batch-size transitions or memory limits. Important capacity decisions should therefore include direct measurements near the target generation speed.
4.3 Production and Offline Results Are Not Directly Interchangeable
Production throughput depends on input distributions, output lengths, cache hit rates, and request arrival patterns. Offline benchmarks may instead use fixed-length tasks under continuously saturated load.
A production throughput ratio can therefore differ from an offline throughput ratio measured at the same per-request speed without the results being contradictory. Before comparing systems, align at least the following:
- Model architecture, weights, and numerical precision.
- Input and output length distributions.
- Cache policies and hit rates.
- Accelerator count and model-parallel and data-parallel layouts.
- Request arrival patterns and test duration.
- Latency constraints and measurement scope.
4.4 Long-Context Tests Must Report Cluster Size
The long-context tests in the source material used different accelerator counts. Normalizing results to per-accelerator throughput does not fully eliminate the effects of cluster layout. Parallelism changes communication paths, memory distribution, and computational efficiency.
A more rigorous report includes per-accelerator metrics, whole-server or cluster metrics, time to complete a request, and actual resource consumption. Conclusions should not rest on normalized throughput alone.
5. Include Latency Distributions and SLO-Compliant Throughput
Time to first token (TTFT) is the interval between sending a request and receiving its first output token. It typically includes network transfer, queueing, prefill, and the first generation step.
Median latency alone is insufficient to assess service stability. Evaluation should also include tail metrics such as the 95th and 99th percentiles, with separate measurements for peak traffic, mixed workloads containing long inputs, and cache misses.
During generation, measure the time between consecutive output tokens as well. A high average generation speed can still produce a poor experience if output repeatedly stalls.
For capacity planning, use throughput that meets service targets, often described as goodput. Count only output from requests that satisfy latency, error-rate, and completion-quality requirements. Otherwise, an increase in total throughput may come at the expense of widespread timeouts and deliver little business value.
6. Optimize Through a Measure–Diagnose–Validate Loop
6.1 Build a Representative Workload First
The test set should cover short inputs with short outputs, long inputs with short outputs, multi-turn interactions, and long-form generation. Combine these categories according to their actual share of the workload.
Test both fixed concurrency and different request arrival rates. Fixed-concurrency tests help map capacity curves. Arrival-rate tests are better suited to revealing queue buildup and worsening tail latency.
6.2 Choose Optimizations Based on the Bottleneck
For compute bottlenecks, examine operator execution efficiency, fusion opportunities, and batch organization. For memory bottlenecks, analyze cache occupancy, data layout, and memory-access patterns. For communication bottlenecks, inspect model partitioning and communication topology. For scheduling bottlenecks, investigate interference between long and short requests, batch formation, and resource preemption.
Continuous batching can reduce resource gaps left by completed requests. Cache reuse can avoid repeated computation on shared contexts. Both depend on the workload. Cache reuse must also ensure correct content matching and respect user isolation and data-access boundaries.
6.3 Validate the Side Effects of Every Optimization
Larger batches may increase TTFT. Cache compression may introduce additional processing overhead. Lower numerical precision may affect output quality. Phase separation may improve latency while increasing resource requirements.
Optimization acceptance should therefore evaluate performance, output quality, stability, and resource consumption together—not report only the most favorable result.
7. Move Beyond Revenue per Accelerator-Hour to Full Economics
Revenue per accelerator-hour can indicate how compute resources are monetized, but revenue is not profit. Estimates based on a particular price and workload depend on the input-to-output ratio, billing model, and actual utilization. They should not be interpreted as continuous, around-the-clock earnings.
A complete cost model includes hardware depreciation, energy and cooling, networking and host resources, storage, software adaptation, operations, and spare capacity. Workloads with pronounced traffic peaks must also account for off-peak idle time and its effect on average cost.
A more practical metric is:
Cost per unit of effective output = Total service cost during the measurement period ÷ Output meeting service targets during the same period
For input-heavy workloads, calculate input-processing and output-generation costs separately. Even at identical output throughput, long-document processing and short conversational workloads can have very different resource profiles.
8. A Final Checklist for Deployment Decisions
Before deploying at scale, confirm that:
- TTFT, inter-token latency, error-rate, and tail-latency targets have been defined from business requirements.
- Capacity has been measured under the target request distribution, not only with idealized short requests.
- Comparison conditions are aligned, including precision, caching, accelerator count, and parallel configuration.
- The main high-concurrency bottlenecks have been identified and optimization results validated.
- Sustained-operation, traffic-burst, and failure-recovery tests have been completed.
- Full costs, resource utilization, and capacity headroom are included in the economic assessment.
Mature LLM inference moves beyond individual-request speed toward reliable production efficiency. Low-concurrency performance is an important starting point, but deployment value depends on consistently meeting user-experience requirements under real workloads at an acceptable cost.
Evaluating throughput, latency, quality, and cost within a single framework helps prevent isolated benchmark numbers from driving misleading conclusions—and supports technical decisions that are repeatable and verifiable.
