Unit 4 of 13 · about 4 hours · measure

Fair warmup and arrivals, raw traces and tail percentiles with uncertainty

Build on Auditing benchmarks: timing, baselines, parity and cherry-picking. Shared queues and prefix caches make serving requests dependent, so uncertainty needs a serving-specific sampling unit.

You'll be able to

  • Run paired serving trials with matched arrivals, cache policy, output contract and warmup boundary.
  • Regenerate latency and goodput summaries from raw per-request records, including failures.
  • Report p50, p95 and p99 with uncertainty that respects trial or session dependence.

Covers

Warmup, cache state and arrival-process fairnessRaw per-request trace retentionp50, p95 and p99 with uncertainty
1

Read

In this order, only the parts listed

0 of 3 done

  1. Benchmark state and endpoint boundaryTensorRT-LLM Benchmarking Guide

    TensorRT-LLM commit cc63e66: Before Benchmarking; Preparing a Dataset; Online Serving Benchmarking; Startup Metrics (page read 2026-10-14)

    Read as governance, not commands to change device settings. Record your GPU's clock, power and thermal state; separate startup and warm serving results.

  2. Retain the request evidence and observer controlLLM Inference Systems Laboratory - Full Capstone

    Milestone B: correlated events, observer overhead, raw timestamps and decode gaps; Milestone E: open-loop final workloads

  3. Resampling independent experimental unitsSciPy bootstrap confidence intervals

    SciPy 1.18.0: Opening resampling procedure; Parameters: statistic, paired, method and rng; Notes: degenerate data; Examples: difference between means and paired-sample statistics (page read 2026-10-14)

    Skip plotting and Array API support. Use the procedure on independent replay trials or justified blocks, not on individual dependent tokens.

2

Focus on

  • Warmup ends at a declared readiness condition. Reset or prepopulate caches identically according to the experiment question; cold cache and cold model startup are different states.
  • Randomize off/on order within replay pairs. Keep intended arrivals fixed, record actual sends and retain client delays so a concurrency cap cannot conceal overload.
  • Keep arrival, admission, first-content, stream-chunk, completion and terminal-error records with token counts and request identity. Client chunk timestamps are not necessarily individual token timestamps.
  • Declare the quantile estimator and the population: request TTFT, request TPOT or token gaps. Resample whole independent trial pairs, recomputing the chosen statistic; report sample counts and sparse-tail limitations.
Common mistakes · 3
  • Computing percentiles of batch means and calling them request percentiles. Aggregation has changed the population.
  • Using more bootstrap resamples to compensate for too few tail observations. Resampling cannot invent an unseen tail.
  • Filtering failed requests and presenting the remaining latency distribution as all-user service quality. Report failures and censoring alongside successful latencies.
3

Try it yourself

Closed-book, before checking anything

Without notes, reconstruct p50, p95 and p99 and goodput from one stored replay, stating clock and timing boundaries. Then resample independent off/on trial pairs with replacement and recompute the difference in the chosen percentile for each resample. Keep the same pair indices for both variants. Save the seed, quantile method and resampling unit; demonstrate that duplicating a request identifier causes your reconciliation check to fail.
4

Quiz yourself

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

0 got · 0 missed

  1. 1.Why preserve off/on pairing during resampling?Answer

    The pair shares replay conditions. Breaking it discards that dependence and changes the uncertainty of the difference.

  2. 2.Is the average of trial p99 values the pooled request p99?Answer

    No. Quantiles are nonlinear. Pool raw observations to estimate pooled p99, or explicitly report the mean of trial p99 values as a different statistic.

  3. 3.Why not independently resample every token gap?Answer

    Gaps share requests, scheduler iterations and cache state. Independent resampling can understate uncertainty; use trials or justified dependent blocks.

  4. 4.Does a narrow interval from a tiny sample establish p99 precisely?Answer

    No. Tail coverage may be poor or the bootstrap degenerate. Report the observation count and limitation, and collect more independent evidence.

You're done when

A fresh analysis run regenerates your percentile and goodput tables from raw records, and your report justifies cache controls, sampling units and tail uncertainty.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 11 more in the section
  • TensorRT-LLM Benchmarking GuideNVIDIA · required

    Use the benchmark workflow, configuration capture, startup metrics and online-serving path as a benchmark-governance reference. Apply the same discipline to your engine and never import NVIDIA results as your own evidence.

  • LLM Inference Systems Laboratory - Full CapstoneRoadmap-Final · required

    Complete the architecture map, contribution, fallbacks, correctness and fault suite, raw benchmark package, negative result, capacity and cost plan, independent reproduction and design defense. This artifact supplies the track milestone.

  • SciPy bootstrap confidence intervalsSciPy · support

    Read the resampling procedure, paired parameter, Notes on degenerate data and Examples. Apply it to independent trials; do not assume correlated serving requests are independent samples.

Also in this section