Skip to content
Plot templates

Box Plots — Request Latency Before and After

Two distributions of request latency as Tukey boxes with their outliers kept and their means marked. The mean is drawn separately because a box shows the MEDIAN, and a reader who assumes it is the mean misreads every skewed group — which for a latency distribution is every group.

Template previewPlot
Request latency, before and after the connection-pool change2 box series over 2 categories: Before, After. y from 0 to 100 — Latency.Request latency, before and after the connection-pool changeOne week of production traffic, sampled at 1% · 2 series · 38 pointsBefore: median 19, IQR 15.5–26, n = 19mean 26.1585896After: median 13, IQR 11–16.5, n = 19mean 16.0533147BeforeAfter020406080100Latency (ms)The line in each box is the median; the separate mark is the mean. They differ here because both distributions have a long right tail, which is what a latency distributionalways has and what a bar of means would hide entirely.

Make it your own.

title: Request latency, before and after the connection-pool change
subtitle: One week of production traffic, sampled at 1%
y: Latency (ms)
grid: y

box "Before"
  12 13 14 15 15 16 16 17 18 19 19 20 22 24 28 34 41 58 96

box "After"
  9 9 10 10 11 11 12 12 13 13 14 14 15 16 17 19 22 31 47

note: The line in each box is the median; the separate mark is the mean. They differ here because both distributions have a long right tail, which is what a latency distribution always has and what a bar of means would hide entirely.