cheat sheets / formulas · 3-min read

Performance Formula Sheet

Every formula on perfday on one printable page.

Concurrency and queueing

Little's LawL = λ · W
Utilisationρ = λ · S
M/M/1 response timeW = S / (1 − ρ)
M/M/1 queue waitWq = ρ · S / (1 − ρ)
One lock's max rate≈ 1 / hold time

Scaling

Amdahl's LawS = 1 / ((1 − p) + p / N)
Amdahl ceiling1 / (1 − p)
p from a measurementp = (1 − 1/S) / (1 − 1/N)
Gustafson's LawS = N − s · (N − 1)
USL throughputX(N) = X(1) · N / (1 + σ(N − 1) + κN(N − 1))
USL peakN* = √((1 − σ) / κ)

Latency

Nearest-rank percentilevalue at position ⌈q · n⌉ of sorted samples
Samples for pqn ≈ 10 / (1 − q)
Fan-out tailP = 1 − (1 − q)^N
Per-backend targetq = 1 − (1 − P)^(1/N)
Effective latencyt = h · t_hit + (1 − h) · t_miss

Capacity and reliability

Time to a limitmonths = ln(limit / load) / ln(1 + g)
Doubling time≈ 70 / growth %
Error budget(1 − SLO) × window
Burn rateactual spend rate ÷ allowed rate
Throughputops/s × size per op · 1 Gbit/s = 125 MB/s
Queue boundmax queue = drain rate × latency budget

Sources

Each formula links to its calculator or reference page, where the primary sources are listed.

Related