Goodput in AI inference is the rate at which a serving system completes requests that meet their service-level objectives (SLOs), usually expressed as requests per second or tokens per second that satisfy limits on time to first token and time per output token. Unlike raw throughput, goodput counts only useful work: a response that arrives too late for the user is treated as wasted capacity.
In AI infrastructure, goodput has become a central metric for large language model serving because aggressive batching can raise throughput while silently breaking latency targets. Optimizing for goodput forces engineers to balance batch size, scheduling and hardware allocation against what users actually experience.
How goodput differs from throughput
Goodput differs from throughput because it filters output through a quality condition. Throughput measures everything a system produces per second; goodput measures only the portion delivered within agreed latency bounds. The term originates in networking, where it described useful payload bits excluding retransmissions and protocol overhead, and it was adapted to LLM serving around 2024.
A system can show high throughput and low goodput at the same time. When a scheduler packs many sequences into each batch, every decoding step takes longer, so time per output token rises above the target. The GPU stays busy, but users wait, and the extra tokens do not count.
The table below contrasts the main serving metrics that appear in capacity planning.
| Metric | What it counts | Blind spot |
|---|---|---|
| Throughput | All tokens or requests per second | Ignores latency violations |
| Goodput | Requests or tokens meeting SLOs per second | Depends on the chosen SLO thresholds |
| Latency percentiles | Distribution of response times | Says nothing about capacity |
| GPU utilization | Share of time hardware is busy | Busy is not the same as useful |
Goodput can be expressed at two granularities. Request-level goodput counts whole requests that satisfy every SLO, which suits interactive products where one slow answer spoils the experience. Token-level goodput counts tokens generated within per-token limits, which is useful for streaming workloads where a brief stall matters less than the overall pace. Reports should always state which granularity is used, because the two can diverge sharply under bursty load.
Service-level objectives that define goodput
Goodput is only meaningful together with explicit SLO definitions. For interactive LLM serving, the two standard objectives are time to first token (TTFT), which reflects the prefill phase, and time per output token (TPOT), which reflects the decode phase. Many operators also attach an attainment target, such as 90% or 99% of requests meeting both limits.
Typical thresholds depend heavily on the application. The following table shows illustrative ranges that teams commonly use; real values should come from product requirements.
| Workload | TTFT target | TPOT target |
|---|---|---|
| Chat assistant | About 0.2-1 s | About 30-100 ms |
| Code completion | Under about 0.3 s | About 20-50 ms |
| Document summarization | Several seconds acceptable | About 100-200 ms |
| Offline batch jobs | Not latency bound | Not latency bound |
For offline batch inference, goodput and throughput nearly converge, because no interactive deadline exists. The metric matters most for online and streaming inference, where a slow first token or a stuttering stream degrades the product directly.
Techniques that raise goodput
Most goodput gains come from reducing interference between prefill and decode and from smarter scheduling. Prefill is compute bound and bursty, while decode is memory bandwidth bound and steady, so mixing them in one batch can delay both.
| Technique | Mechanism | Typical goodput effect |
|---|---|---|
| Disaggregated serving | Runs prefill and decode on separate GPU pools | Removes phase interference; large gains under tight SLOs |
| Chunked prefill | Splits long prompts into pieces mixed with decode steps | Smooths TPOT spikes |
| Continuous batching | Adds and removes sequences at every step | Higher utilization without long queues |
| Prompt caching | Reuses KV cache for repeated prefixes | Cuts TTFT for shared context |
| Speculative decoding | Drafts several tokens and verifies them at once | Lowers TPOT at moderate load |
Research systems such as DistServe popularized goodput as the optimization target and reported serving several times more requests within SLOs than colocated baselines on some workloads. Results vary with model size, prompt length distribution and interconnect bandwidth, so gains must be measured on the actual traffic mix.
Measuring goodput in practice
Measuring goodput requires per-request latency records, not only aggregate counters. The usual procedure replays a realistic request trace at increasing arrival rates and records, for each rate, the share of requests that meet every SLO.
- Define TTFT and TPOT limits and the attainment target, for example 90%.
- Replay a production-like trace with realistic prompt and output lengths.
- Increase the request rate until attainment falls below the target.
- Report the highest sustainable rate as goodput, often normalized per GPU.
Normalizing goodput per GPU or per dollar lets teams compare configurations fairly, since a deployment that doubles goodput with three times the hardware is not an improvement. This connects goodput directly to cost per token and provisioned throughput planning.
In production, the same calculation runs continuously on live telemetry. Observability pipelines record TTFT and TPOT for every request, and dashboards plot SLO attainment against request rate. When attainment drifts toward the target, inference autoscaling can add replicas before users notice degradation, which keeps goodput stable during traffic peaks.
Common mistakes when using goodput
Goodput is easy to misreport, and the most common errors make systems look better than they are in production.
| Mistake | Consequence | Correction |
|---|---|---|
| Synthetic uniform prompts | Hides long-prompt prefill spikes | Use real length distributions |
| Averages instead of percentiles | Masks tail latency violations | Track P90 or P99 attainment |
| Undisclosed SLO thresholds | Results cannot be compared | Publish TTFT and TPOT limits |
| Ignoring failed requests | Overstates useful work | Count errors and timeouts as misses |
Understanding it simply
Think of a pizza shop that promises delivery in 30 minutes. Throughput is every pizza the shop bakes. Goodput is only the pizzas that arrive hot and on time. A shop can bake many pizzas and still disappoint customers if they arrive late.
AI chat services work the same way. A server may produce a huge number of words per second. What matters is how many answers reach users fast enough. Goodput counts only those answers, so it shows the real value a system delivers.
Applied in practice
A company runs a customer-support chatbot on a cluster of eight GPUs. Its SLOs require a TTFT under 1 second and a TPOT under 80 ms for 90% of requests. Benchmarks show high throughput, yet users complain about sluggish answers during busy hours.
The infrastructure team replays a week of real traffic and finds that long pasted documents cause prefill bursts that stall decoding. At 12 requests per second, SLO attainment drops to 75%, so goodput is far lower than raw throughput suggested. The team enables chunked prefill and moves two GPUs to a dedicated prefill pool.
After the change, the cluster sustains about 18 requests per second at 90% attainment. The result is roughly 50% more goodput on the same hardware, which postpones a planned GPU purchase and lowers cost per useful response.