How Equal Mean Latency Can Hide Different Experiences
Time samples with the same mean can have very different spread and slow-case behavior.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Compare two runs
Durations 4, 4, 4 average four. Durations 1, 1, 10 also average four. Only the second has a long result and two unusually quick ones. See spread and variance.
Report several useful summaries
Choose a center, tail, and count when they reflect the user experience. Compare distributions under similar demand. Typical and slow durations gives concrete workload observations to keep.[1]
Show the same mean with different user delays
Four requests taking ten milliseconds each have mean ten. Durations two, two, two and thirty-four also have mean ten. In the second run three requests are much faster and one is slower. A majority and a tail can move in different directions. See typical and slow request durations.
Uniform: 10,10,10,10 → mean 10
Spread: 2,2,2,34 → mean 10
Worst observation increases from 10 to 34
Include distribution information relevant to the promise
If users care about deadlines, count what share meets each one. For an observed 20-millisecond threshold, the two examples meet it on four of four and three of four requests respectively.