Response times are a distribution, which is hard to put in a status report. Apdex reduces them to one number by asking a simpler question for each request or page: was the user satisfied, tolerating the wait, or frustrated?

The formula

First choose a target time T, the response time at which users are satisfied. Then sort every measurement into one of three groups:

Group Response time Counts as
Satisfied at most T 1
Tolerating over T, at most 4T 0.5
Frustrated over 4T, or an error 0

Apdex = (satisfied + tolerating ÷ 2) ÷ total

The result is between 0 (everyone frustrated) and 1 (everyone satisfied). It is usually written with T, for example 0.88 [2.0]: a score of 0.88 with a target of 2 seconds.

A worked example

A load test records 1,000 page loads with T = 2 seconds, so tolerating means 2 to 8 seconds:

  • 800 page loads within 2 s: satisfied
  • 150 between 2 and 8 s: tolerating
  • 30 over 8 s, and 20 errors: frustrated

Apdex = (800 + 150 ÷ 2) ÷ 1,000 = 875 ÷ 1,000 = 0.875.

The rating scale

The Apdex specification names ranges of the score:

Score Rating
0.94 – 1.00 Excellent
0.85 – 0.93 Good
0.70 – 0.84 Fair
0.50 – 0.69 Poor
below 0.50 Unacceptable

The example above, 0.875, is “Good”.

Choosing T

T decides everything, so choose it per kind of response:

  • A full page in the browser: 2 to 3 seconds is a common target for a shop’s pages.
  • An API call or a server response: much lower, often a few hundred milliseconds.
  • Search, checkout and other key steps may deserve their own T.

Pick T from what your users expect and what the business can accept, not from what the site achieves today. If T is set too high, every score is excellent and the number says nothing.

What Apdex hides

  • How slow the frustrated users were. A 9-second page and a 60-second page both count as 0.
  • Which pages are slow. One overall score can hide a checkout that frustrates everyone. Score key pages separately.
  • The shape of the tail. Two very different distributions can give the same score. Keep a percentile such as p95 next to Apdex.
  • Comparability. Scores with different T are not comparable, so always state T.

Apdex is useful as a headline in a dashboard or an SLO, and weak as a diagnostic. Use it to see that something changed, and percentiles and per-page times to see what.

Apdex in a load test

Apdex is most often used in application performance monitoring tools, but it works for load test results too: compute it from every page load at each load level and plot it against the number of users. The point where the score drops from “Good” to “Fair” is a practical capacity limit, similar to what a capacity test finds with a page load limit.

With Supervisor

Supervisor reports the average page load, the time 95% of pages loaded within, and the slowest pages, measured in real browsers, and stops an automatic test when the average page load passes your limit (3 seconds by default). That limit plays the role of T: the number of users handled is the load at which pages stopped meeting it.