Labs

Latency ladder

From L1 cache to a round trip across the Atlantic, on a scale you can feel.

Scale
  • CPU
  • Memory
  • Storage
  • Network

Log scale, one gridline per 10×. Ratios against: L1 cache reference (1 ns).

Memory ÷ L1~100×100 ns vs 1 ns
SSD read ÷ memory~160×16 µs vs 100 ns
Cross-continent ÷ same DC~300×150 ms vs 500 µs

Memory is ~100× L1, and leaving the machine is another world: one California ↔ Netherlands round trip costs as much as ~150 million L1 reads.

How it's calculated · assumptions

latency ≈ Σ hops on the critical path · memory ≈ 100× L1 · SSD ≈ 100–1,000× memory · cross-continent ≈ 300× same-DC round trip

Design around round trips: cache near the reader (a CDN), batch calls, keep the critical path inside one datacenter.

Values: Colin Scott's interactive "Latency Numbers Every Programmer Should Know" model at year 2020, the last on its slider (checked Nov 2026). It extrapolates hardware trends from Norvig's ~2002 table, so read orders of magnitude, not benchmarks. The disk rows are the most extrapolated: the classic tables list ~8–10 ms per seek (Norvig, Jeff Dean) and ~20 ms to read 1 MB from disk (Norvig).