What is p95 response time, and why not just use the average?

· 4 min read · QuickInbox team

  • p95
  • Performance
  • Load testing

Load test reports often show "p95". It's one of the most useful numbers in performance testing, and it's simple once you see an example.

The definition

p95 is the response time that 95% of requests were faster than. If your p95 is 400 ms, then 95 out of every 100 requests finished in under 400 ms, and 5 took longer.

An example

Imagine 10 requests with these times in milliseconds:

120, 130, 140, 150, 150, 160, 170, 180, 200, 2400

The average is 380 ms, which sounds fine. But one visitor waited 2.4 seconds. The average hides that. Percentiles show it: the slowest requests are exactly what p95 and p99 are about.

Why not the average?

  • A few very slow requests barely move the average, but real people sat through them.
  • Many fast cached requests pull the average down and make things look better than they are.
  • With p95 you're making a promise about almost everyone, not about an imaginary "average visitor".

p50, p95, p99

  • p50 (the median): half of requests were faster.
  • p95: 95% were faster. The usual target.
  • p99: 99% were faster. Useful for busy APIs, where 1% is still a lot of people.

What's a good p95?

It depends on the page. As a rough guide for a normal web app: under 300 ms is great for APIs, under 1 second is fine for pages that do real work, and anything over 2 seconds will be noticed. Login and checkout can be a little slower because they do more.

p95 in a load test

QuickInbox load test results show the average p95 response time next to the error rate. Watch both while you increase traffic: when p95 climbs fast, you're near your limit, even before errors appear. See how many users your website can handle.

Related guides

Run a load test: QuickInbox includes a free test with up to 10,000 simulated visitors. Bigger tests are prepaid, from $3 for 10 small tests, with no monthly fee. See load testing or create a free account.

← All articles