If 19 pages load in half a second and one takes ten seconds, the average is about one second, which sounds fine. One visitor in twenty still waited ten seconds. Percentiles exist to show that visitor.

p50, p90, p95, p99

A percentile says what share of the measurements were at or below a value:

Percentile Meaning Also called
p50 Half were faster, half slower Median
p90 90% were at or below this 90th percentile
p95 95% were at or below this; 1 in 20 was slower 95th percentile
p99 99% were at or below this; 1 in 100 was slower 99th percentile, tail latency

The higher the percentile, the more it is about the slow tail. p50 describes a typical visit; p95 and p99 describe the visits people complain about.

How a percentile is calculated

Sort the measurements from fastest to slowest and take the value at the percentile’s position. With 20 page loads, sorted:

0.4, 0.4, 0.5, 0.5, 0.5, 0.5, 0.6, 0.6, 0.6, 0.7, 0.7, 0.7, 0.8, 0.8, 0.9, 0.9, 1.1, 1.3, 2.4, 9.8 seconds

  • The average is 1.24 s.
  • The p50 (10th–11th value) is 0.7 s.
  • The p95 is the 19th value: 2.4 s (95% of 20 is 19).
  • The slowest is 9.8 s.

Tools differ slightly in how they pick or interpolate the value when the position falls between two measurements, so two tools can report a slightly different p95 for the same data. The difference matters little with many measurements and a lot with few.

Why the average misleads

  • One very slow request moves the average a lot, and many slow requests can hide behind a few very fast ones (cached pages, error pages that return instantly).
  • Load affects the tail first. As a site gets busy, most requests still go through quickly while some wait for a database connection or a worker. p95 and p99 rise while the average barely moves.
  • Each user makes many requests. A page view with 50 requests almost always includes at least one from the slowest 5%. The p95 of requests is close to the typical experience of a page.

How many samples you need

A percentile is only as good as the number of measurements behind it. To say anything about the slowest 1% (p99), you need well over a hundred measurements; for p95, at least several dozen. A short test with a few users gives a p99 that is really just “the slowest request”. Run long enough, with enough users, to have hundreds of samples per page you care about.

Using percentiles in a load test

  • Watch p95 over time, not only at the end. The moment it starts to climb, as users are added, is often the first sign of the bottleneck.
  • Look per page. A good overall p95 can hide one page, typically search or checkout, that is slow for everyone.
  • Don’t average percentiles. The average of two tests’ p95 values is not the p95 of both together. Combine the raw measurements instead.
  • Set limits on percentiles, for example “95% of pages under 3 seconds”, rather than on the average.
  • Measure what the user waits for. Server response time and the time the browser needs to show the page are different numbers. A fast server response with slow scripts still means a slow page.

Google’s Core Web Vitals use a percentile too: a page is assessed by the 75th percentile of real visits, so the experience of most visitors, not the average, decides the result.

p95 and SLOs

Service level objectives are usually written as percentiles: “95% of checkout requests within 1 second over 28 days”. The percentile sets how many slow requests you accept, and the time sets what slow means. A load test shows at what number of users the objective would be broken.

With Supervisor

Every Supervisor load test reports the average page load and the time 95% of pages loaded within, measured in real browsers, together with the slowest pages, server time and browser time, and the slowest requests. In the example report for acme-shop.example with 100 users, the average page load was 0.54 s, 95% of pages loaded within 1.33 s, and the slowest page took 4.5 s: three numbers that tell three different stories.