p95 vs average response time — which number to watch
Averages hide your slowest users. Learn what p50, p95 and p99 mean, how to read them, and which latency number to put on your dashboard and alerts.
Your dashboard says the average response time of GET /checkout is 180 ms. Fast enough? Maybe. Now look at the same route's p95: 2.4 seconds. One customer in twenty waits more than two seconds to pay. The average did not lie; it just answered a question nobody asked.
What percentiles mean
Sort every request in a time window from fastest to slowest.
- p50 (the median) is the one in the middle: half the requests were faster, half slower. It is "the typical experience".
- p95 is the request 95% of the way down the list: only 5% were slower. It is "a bad but common experience".
- p99 is 99% of the way down: the slowest one in a hundred.
The average adds every duration and divides by the count. One request stuck for 30 seconds drags it up; a hundred fast cache hits drag it down. It describes no real user.
Why p95 is the number to watch
- It reflects what people feel. A page that is usually fast but sometimes takes three seconds feels unreliable, and p95 is where that shows.
- It is stable enough to alert on. p99 jumps around on small traffic (one slow request moves it); p95 needs a handful of slow requests, so it moves when something real changes.
- It points at tail problems. Lock waits, cold caches, a slow third-party API on some calls — these live in the tail, not the average.
How to read them together
| p50 | p95 | What it usually means |
|---|---|---|
| low | low | Healthy. |
| low | high | Most requests are fine; a subset is slow. Look at the slowest traces. |
| high | high | Everything is slow. Look at a typical trace — the problem is in the common path. |
| rising slowly | rising slowly | Something is growing: a table without an index, a list without a limit. |
Percentiles need enough requests
A p95 over ten requests is just "the second slowest". Read percentiles over a window with at least a few dozen requests, and treat routes with little traffic with care.
Doing it in Grafatsuki
Every app's overview lists its routes and jobs with p50 and p95, slowest first. With the query language you can chart any of them:
spans | where root = true | p95(duration) by name | top 10
spans | where root = true and name = "GET /checkout" | p95(duration) by time
And alert on it: a rule like "p95 of GET /checkout above 800 ms over 10 minutes, with at least 20 requests" fires once when the tail grows, and sends an all-clear when it shrinks. See alerts and uptime and dashboards.
Keep the average if you like it. Just never make a decision on it alone.