Simulation 101 · Latency 1 · companion

A reusable baseline: the median and sigma of a latency library

The library draws a request's latency as median × exp(sigma × Z), a lognormal. Pick the two declared parameters, the median and sigma, and read the percentiles of 1,000,000 simulated requests beside the exact ones. The histogram can be shown on a linear or a logarithmic axis. Every measured value comes from a real run of the library.

Pick the two parameters

Median (ms)
Sigma
Axis

The histogram, with its percentiles

Measured against exact

1,000,000 requests; measured percentile with its standard error in brackets; exact = median × exp(sigma × z), z the standard normal quantile
StatisticzMeasured (SE)Exact