System Design
Order-of-magnitude latencies from L1 cache (~1 ns) to a cross-continent round trip (~150 ms). The point isn't the exact figure — it's the ratios: memory is ~100× faster than SSD, and a network hop dwarfs everything local.
Updated August 30, 2026 · 4 min read
Each step down is roughly an order of magnitude. Treat these as powers of ten, not exact numbers.
| L1 cache reference | ~1 ns |
|---|---|
| Branch mispredict | ~3 ns |
| L2 cache reference | ~4 ns |
| Mutex lock / unlock | ~17 ns |
| Main memory (RAM) reference | ~100 ns~100× an L1 hit |
| Compress 1 KB (Snappy/LZ4) | ~2 µs |
| Read 1 MB sequentially from RAM | ~3 µs |
| SSD random read (4 KB, NVMe) | ~16 µs |
| Read 1 MB sequentially from SSD | ~200 µsNVMe faster, SATA slower |
| Round trip in the same datacenter | ~0.5 ms |
| Read 1 MB sequentially from HDD | ~2–5 ms |
| HDD disk seek | ~5–10 ms |
| Send 1 MB over 1 Gbps network | ~8 ms |
| Round trip California ↔ Europe | ~150 msspeed of light floor |
| RAM vs SSD (random) | ~150× slower |
|---|---|
| RAM vs same-DC round trip | ~5,000× slower |
| Same-DC vs cross-region round trip | ~300× slower |
| One cross-region round trip | ≈ 1.5 million L1 hitswhy chatty cross-region calls kill latency |