Goodput · AI inference

On this page 7

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.

MetricWhat it countsBlind spot
ThroughputAll tokens or requests per secondIgnores latency violations
GoodputRequests or tokens meeting SLOs per secondDepends on the chosen SLO thresholds
Latency percentilesDistribution of response timesSays nothing about capacity
GPU utilizationShare of time hardware is busyBusy is not the same as useful
Serving metrics compared

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.

WorkloadTTFT targetTPOT target
Chat assistantAbout 0.2-1 sAbout 30-100 ms
Code completionUnder about 0.3 sAbout 20-50 ms
Document summarizationSeveral seconds acceptableAbout 100-200 ms
Offline batch jobsNot latency boundNot latency bound
Illustrative SLO targets by workload

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.

TechniqueMechanismTypical goodput effect
Disaggregated servingRuns prefill and decode on separate GPU poolsRemoves phase interference; large gains under tight SLOs
Chunked prefillSplits long prompts into pieces mixed with decode stepsSmooths TPOT spikes
Continuous batchingAdds and removes sequences at every stepHigher utilization without long queues
Prompt cachingReuses KV cache for repeated prefixesCuts TTFT for shared context
Speculative decodingDrafts several tokens and verifies them at onceLowers TPOT at moderate load
Optimization techniques and their effect on goodput

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.

  1. Define TTFT and TPOT limits and the attainment target, for example 90%.
  2. Replay a production-like trace with realistic prompt and output lengths.
  3. Increase the request rate until attainment falls below the target.
  4. 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.

MistakeConsequenceCorrection
Synthetic uniform promptsHides long-prompt prefill spikesUse real length distributions
Averages instead of percentilesMasks tail latency violationsTrack P90 or P99 attainment
Undisclosed SLO thresholdsResults cannot be comparedPublish TTFT and TPOT limits
Ignoring failed requestsOverstates useful workCount errors and timeouts as misses
Pitfalls and corrections

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.