Guides · Cost and speed

LLM latency: how to measure median, p95 and time to first token

Updated 2026-12-02

Short answer: measure three things on your real prompts: time to first token (how long before text starts appearing), total response time (until the last token) and output tokens per second. Report the median and the p95 (the time 95% of requests beat), not the average: the slow 5% is what users remember.

Which number matters for you

Your featureWatch
Chat, streamed to the screenTime to first token, then tokens per second
Background job: extraction, classification, a reply the user sees only when completeTotal response time, p95
Batch processing overnightThroughput and cost, not latency

How to measure it

  1. Use 30–100 real prompts, not "hello": latency grows with input length and, above all, with output length.
  2. Stream the response and record when the request was sent, when the first token arrived and when the last one arrived.
  3. Run each model at the same time of day, from the same region, ideally at your peak hours too.
  4. Sort the total times: the middle value is the median, the value 95% of the way up is p95.
  5. Record output tokens too. A model that writes twice as much will be slower even at the same tokens per second.

What makes responses faster

Speed trackers measure their prompts at their moment. Your p95 on your prompts is the only number that tells you whether your users will wait.

Speed is one column in the comparison, next to pass rate and cost: how to compare models on your own prompts.

Let every new model take your test, automatically

Modeldrop (in development) keeps your prompts and your rules for a correct answer. Every time a major lab releases a model, it runs your prompts on it, compares the results with the model you use today and emails you the verdict: how many pass, what it would cost at your volume and how fast it is. No API keys, no eval code.

See the founding offer

Related guides