Comparing Typical and Slow Request Durations
A median describes the center of an ordered sample. Higher percentiles describe portions of the slower end under their chosen definition.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace a five-request sample
Times 20, 21, 23, 25, and 300 milliseconds have median 23. The maximum is 300, so the median alone conceals one long wait. Sample percentiles explain conventions near the tail.
Gather enough observations
A high percentile measured on a small run can be unstable or effectively one sample. Report the count and measurement period. See latency budgets and tail measurements.[1]
Compare ordered samples with the same percentile rule
In latency samples [3,4,4,5,90] and [3,4,4,7,12], both medians are four milliseconds. The largest samples differ sharply. A percentile computed on only five values has low resolution and needs a stated quantile convention. See equal means and latency patterns.
Sample A: median 4, max 90
Sample B: median 4, max 12
A larger repeated experiment is needed to characterize rare slow requests
Keep the denominator visible in a percentile report
A high percentile estimated from very few requests can be determined by one event. Report how timeouts and errors enter the sample. Compare distributions under the same load and request mix.