Match TTFT and TPOT to the latency they measure during streaming
TTFT is wall-clock to the first content token (dominated by prefill); TPOT is the inter-token gap during streaming (dominated by decode). Total latency is TTFT + N * TPOT.
Imagine ordering a coffee. TTFT is how long you wait from the moment you order until the first drop hits the cup. TPOT is how steadily the rest of the coffee streams in after that. Two cafes might both deliver a full cup in thirty seconds, but the one with a five-second TTFT feels much faster than the one that takes twenty-five seconds to start pouring. LLM serving is the same: users do not care about total time as much as how quickly something starts arriving and how smoothly the rest follows.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: TTFT = first content token, dominated by prefill + TPOT = per-token gap, dominated by decode + total = TTFT + N * TPOT + different optimizations for each + measurement pitfalls.
| Metric | What it measures | Bound by | Scales with |
|---|---|---|---|
| TTFT | Request to first content token | Prefill compute, HBM bandwidth for KV write | Prompt length |
| TPOT | Inter-token gap during streaming | HBM bandwidth for weights and KV reads | Roughly flat per token, slight growth with context |
Real products, models, and research that use this idea.
- OpenAI publishes TTFT and TPOT for GPT-5.5 on its status page, breaking down latency by region and model tier.
- Anthropic's Claude Opus 4.7 and Sonnet 4.6 endpoints expose comparable per-token streaming latency to enterprise customers.
- vLLM benchmarks report TTFT and TPOT separately for Llama 3.1 70B on H100, illustrating the prefill versus decode split.
- TensorRT-LLM MLPerf submissions report median and p99 TPOT to demonstrate steady streaming under load.
- DeepSeek V4 latency tuning explicitly splits TTFT goals from TPOT goals when budgeting prompt length and batch size.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does prompt caching cut TTFT but not TPOT?
QHow does speculative decoding affect TPOT?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating TTFT and TPOT as the same metric, or measuring them at the wrong event. TTFT ends at the first content delta, not the first SSE event.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.