Unit 5 of 10 · about 4 hours · explain, derive, measure

TTFT, TPOT, throughput and goodput

Throughput without a latency SLO ranks systems by their averages and hides the stalls users feel. SLO-qualified thinking is what turns a benchmark into a serving decision.

You'll be able to

  • Define TTFT, TBT, TPOT, normalized latency, capacity and goodput, and state what each hides (scheduling delay, jitter, prompt-length spread).
  • Compute fluidity-index for a timestamp trace and derive the fluid token generation rate at a stated SLO.
  • Show peak token throughput ranking two systems differently from SLO-qualified rate, using the paper's vLLM versus Sarathi-Serve and Groq numbers.

Covers

Time to first token, time per output token, inter-token and end-to-end latencyTokens per second, requests per second and useful work per deviceGoodput under per-request latency and correctness requirements
1

Read

In this order, only the parts listed

0 of 4 done

  1. TTFT, TBT, TPOT, normalized latency, capacity and their pitfallsEtalon

    Sections 2.2 and 3.1 with Figures 1 to 3 (the vLLM versus Sarathi-Serve Arxiv-Summarization comparison at 1.5 QPS)

  2. Goodput: the request rate served within the SLODistServe: Disaggregating Prefill and Decoding for Goodput-optimized LLM Serving

    Section 1 with Figure 1 (per-GPU goodput; a 13B model on one A100 reaches about 1.6 requests per second at 90% SLO attainment)

  3. fluidity-index, fluid rate and the two evaluation recipesEtalon

    Section 4.1 (Algorithm 1, Figure 4) and Section 4.2 (black-box and capacity recipes); Section 5.1 Figure 5 with Section 5.2 Figure 6

    Etalon defines no metric named goodput. Its SLO-qualified rates are the fluid token generation rate and capacity under a fluidity SLO (99% of requests at 0.9 or higher). The text cross-reference to the algorithm is mistyped; read Algorithm 1 itself.

  4. Latency-throughput tradeoff and cost per tokenHow to Scale Your Model - Inference

    What is the LLaMA Serving Story? through Visualizing the Latency Throughput Tradeoff, including the NumPy roofline snippet (kv_comms_time with attn_time always bandwidth-bound for generate)

2

Focus on

  • TTFT mixes scheduling delay with prompt processing and grows with prompt length (Figure 1, Yi-34B on 2 H100); never set it as one static SLO across lengths.
  • TPOT and normalized latency divide by decode count, so a 10 s stall over a 228-token median moves them by milliseconds; tail TBT sees the stall but not its timing or frequency.
  • fluidity-index banks early slack and resets deadlines after a miss (Algorithm 1, Figure 4); the fluid rate is the inverse of the smallest TBT deadline holding 99% of requests at 0.9 or higher.
  • Goodput is the highest request rate served while a target share of requests (say 90%) meets the TTFT and TPOT SLOs (DistServe). Etalon's fluid token generation rate and capacity under a fluidity SLO are SLO-qualified rates of the same kind, with the SLO set on every token deadline.
Common mistakes · 3
  • Averaging TBT across requests. Means hide per-request stall timing; request-level deadline accounting exists because the CDFs and means disagreed (the P85 versus P99 flip in Figure 3c).
  • Fitting the prefill deadline on the wrong system. comes from the evaluated system's isolated prefill curve (10 repeats), not from a constant or another engine's curve.
  • Reading Figure 5d as raw speed. It plots acceptance against TBT target at a fixed 10% miss line; Groq leads there while trailing on prefill in Figure 5c.
3

Try it yourself

Closed-book, before checking anything

Closed-book, score the Section 4 pair at TBT deadline 100 ms: both traces take one TBT miss in 11, while fluidity-index gives 1.0 to the 10 ms system and 10/11 to the 100 ms system. Derive both from Algorithm 1's slack and reset rules.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.What two components make up TTFT, and why can a short request show a large one?Answer

    Scheduling delay plus prompt processing. Queueing behind earlier work inflates TTFT even when the prompt itself is cheap.

  2. 2.Why must the prefill deadline be a fitted function of prompt length?Answer

    Prefill grows about quadratically (Figure 1), and the workload spreads 417 median to 1418 p90 tokens; a static target is either slack or impossible.

  3. 3.The toy pair has TPOT 22.7 ms versus 104.5 ms, so TPOT separates them. Why is fluidity-index still needed?Answer

    TPOT separates different means but hides stall structure at equal means: vLLM and Sarathi-Serve tie on TPOT while a 10 s stall wrecks one of them. Fluidity credits early slack and penalizes miss timing.

  4. 4.How do the three Figure 5a rates rank Groq, and what does each assume?Answer

    TPOT inverse gives about 600 tok/s (ignores stalls), tail-TBT inverse about four times less (over-penalizes the tail), fluid rate sits between at the rate holding the 99%/0.9 SLO.

5

Practice

  • Etalon Algorithm 1 on the two Section 4 systems

    Section 4 motivating example (10 tokens at 10 ms versus 100 ms, 11th at 150 ms) with Algorithm 1 in Section 4.1

    Implement Algorithm 1 in your own repository, score both traces at 100 ms deadline (expect 1.0 versus 10/11 against a tied 1/11 TBT miss rate), then apply it to one real timestamp trace with a fitted .

You're done when

Your implementation returns 1.0 and 10/11 on the two traces, and you can read TPOT, tail-TBT and fluid rates off Figures 3b and 5a with the ranking flip explained.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 6 more in the section
  • How to Scale Your Model - InferenceJAX Scaling Book · primary

    Work through the single-request, batching, key-value memory and parallelism arithmetic. Recompute every quantity for the small model and workload used by the track project, keeping symbols, units and assumptions visible.

  • EtalonEtalon Authors · support

    Read the latency metric definitions, their pitfalls and fluidity-index. Add TTFT and TPOT SLOs to a small load generator, and show why peak token throughput can rank two systems differently from an SLO-qualified rate.

  • DistServe: Disaggregating Prefill and Decoding for Goodput-optimized LLM ServingZhong et al. (OSDI 2024) · support

    Read Section 1 with Figure 1 for per-GPU goodput: the highest request rate served while a target share of requests meets the TTFT and TPOT SLOs.

Also in this section

  • AI Performance Engineering - Start HereWafer · reference

    A curated, dated index. Its Start Here list names the readings this section already assigns; use the later sections only to find a primary source for a later section, never as the reading itself.

  • Transformer Inference ArithmeticKipply · required

    Reproduce the FLOP, parameter-byte, key-value-byte and communication estimates for dense transformer inference. Compare the formulas with an instrumented framework trace and explain model residuals instead of fitting constants after measurement.

  • Efficiently Scaling Transformer InferenceMLSys · required

    Study the latency, memory and parallelism model. Use the paper to derive a batch and parallelism crossover for your workload, while reserving distributed execution for GPU-9.

  • GPU Microbenchmark and Kernel SuiteRoadmap-Final · support

    Adopt the project harness schema, architecture constraints and hardware tiers now. Implement only the environment manifest, independent references, raw-trial storage and the initial operation and byte models in this stage.

  • How to Scale Your Model - TrainingJAX Scaling Book · required

    Work Some Problems to Work Questions 1 to 3 for training-step parameters, Adam and activation bytes and step time; read Data Parallelism and Fully-Sharded Data Parallelism for the comms-bound batch rule.

  • Amdahl's lawWikipedia · reference

    Read Definition and Derivation for the overall-speedup formula with the worked share examples; apply it to kernel time shares at fixed workload.