LearnQuestion bank

Define TTFT, inter-token latency, end-to-end latency and throughput. How would SLOs differ for a chat product and for a batch document-processing job?

Applied LLMTechnicalEasy

Theme reported publicly: PolyAI, ElevenLabs

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • TTFT = queueing + prefill + first token; ITL = gap between tokens; e2e ~ TTFT + ITL x output tokens; throughput = tokens/sec or requests/sec per GPU
  • Chat: low p95/p99 TTFT and ITL faster than reading speed, streaming, tight e2e for short turns
  • Batch: maximise throughput per pound, tolerate long/hours, batch APIs, e2e less important than cost and completion
  • Measure percentiles under realistic load and length distributions; report goodput = requests within SLO
  • Throughput-latency curve: larger batches raise throughput then plateau/degrade while TTFT/ITL worsen; pick operating point

In full

TTFT is the time from request acceptance to the first output token, so it includes queueing, prefill and the first decode step; inter-token latency is the gap between successive tokens, and end-to-end latency is roughly TTFT plus ITL times the number of output tokens, while throughput is how many tokens or requests a GPU/node can serve per second. For a chat product I would set tight p95/p99 SLOs on TTFT and ITL, with ITL comfortably faster than reading speed and streaming so users see progress, plus an e2e target for typical short turns. For a batch document-processing job I would optimise throughput per pound and completion rate, tolerate long or even hour-scale latency, and prefer batch APIs over low-latency streaming. I would measure percentiles under realistic load and realistic prompt/output length distributions rather than uniform synthetic traffic, and report goodput as the fraction of requests meeting the SLO, not just average latency. The key trade-off is the throughput-latency curve: as batch size grows, throughput per GPU improves then plateaus or degrades while TTFT and ITL worsen, so the SLO should choose an operating point that matches the product, not the maximum possible throughput.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • TTFT = queueing + prefill + first token; inter-token latency; e2e ≈ TTFT + ITL × output tokens; throughput per GPU
  • Chat: low p95 TTFT, ITL faster than reading speed, streaming. Batch: maximise throughput per pound, tolerate hours, batch APIs
  • Percentiles under realistic load and length distributions; “goodput” (requests within SLO)
  • Throughput–latency curve as batch size changes

Common mistakes

  • Averages only
  • benchmarks with unrealistically short prompts