Phase 3: Measurement & Unit Economics · ~60 minutes · Python (stdlib · toy percentile calculator and goodput reporter)
The Concept
TTFT — time to first token
TTFT = queue_time + network_request + prefill_time
Prefill dominates when prompts are long. On Llama-3.3-70B FP8 on H100, a 32k prompt takes ~800 ms of pure prefill. Queue time is scheduler behavior under load. Network request is wire time including TLS. TTFT is the latency the user sees before anything streams back.
TPOT / ITL — inter-token latency
Many names for one quantity. TPOT (time per output token), ITL (inter-token latency), decode latency per token — all the same. It is the time between consecutive streamed tokens after the first.
TPOT = (decode_forward_time + scheduler_overhead) / tokens_produced
On the same Llama-3.3-70B H100 stack with chunked prefill, TPOT mean ~7 ms. Without chunked prefill, during a long prefill on a neighboring sequence, TPOT can spike to 50 ms. Watch P99, not mean.
E2E latency
E2E = TTFT + TPOT * output_tokens + network_response
For long outputs (>500 tokens), E2E is TPOT-dominated. For short outputs with long prompts, E2E is TTFT-dominated. Report output-length-conditioned E2E.
Throughput
throughput = total_output_tokens / elapsed_time
Aggregate metric. Tells you fleet efficiency. Does not tell you individual-request health.
Goodput — the metric you actually care about
goodput = fraction of requests meeting (TTFT <= a) AND (TPOT <= b) AND (E2E <= c)
The SLO is a multi-constraint. A request is "good" only if every constraint held. Goodput is the share. High throughput at 60% goodput is failure. Lower throughput at 99% goodput is the target.
In 2026, goodput is the metric used in MLPerf Inference v6.0 submissions and in internal SLA tracking at AI platform providers.
Why mean is the wrong statistic
LLM latency distributions are right-skewed. A decode batch with one long-prefill neighbor can ship 500 tokens with TPOT ~7 ms and 20 tokens with TPOT ~60 ms. Mean TPOT is 9 ms. P99 TPOT is 65 ms. Users hit the P99 regularly — that is why they leave.
Always report the triple (P50, P90, P99). For user experience, P99 is the one you optimize.
Reference numbers — Llama-3.1-8B-Instruct on TRT-LLM, 2026
- mean TTFT: 162 ms
- mean TPOT: 7.33 ms
- mean E2E: 1,093 ms
- P99 TPOT: varies 10-25 ms depending on chunked-prefill configuration.
These are the published NVIDIA reference points. They change with model size (70B would show 3-5x), hardware (H100 vs B200 ~3x), and load.
The measurement trap
Two of the most-used 2026 benchmark tools disagree on TPOT for the same run:
- NVIDIA GenAI-Perf: excludes TTFT from the ITL calculation. ITL starts from token 2.
- LLMPerf: includes TTFT. ITL starts from token 1.
For a request with TTFT 500 ms and 100 output tokens in 700 ms total decode, GenAI-Perf reports ITL = 700/99 = 7.07 ms, LLMPerf reports ITL = 1200/100 = 12.00 ms. Tool choice changes the number.
Always state which tool. Always publish the definition.
Constructing an SLO
A reasonable consumer-facing SLO for a 70B chat model in 2026:
- TTFT P99 <= 800 ms.
- TPOT P99 <= 25 ms.
- E2E P99 <= 3 s for <300-token outputs.
- Goodput target >= 99%.
Enterprise SLOs tighten TTFT (200-400 ms) and loosen E2E. The point is to write them down, measure all three, and track goodput as a single composite.
How to measure
- Run real traffic or realistic synthetic (LLMPerf with
--mean-input-tokens 800 --stddev-input-tokens 300 --mean-output-tokens 150). - Target 2x peak concurrency for the benchmark run.
- Run 30-50 iterations, take percentiles of the combined sample.
- Publish with tool name, tool version, model, hardware, concurrency, prompt distribution.