What are the key latency numbers every engineer should know?
Jeff Dean's latency numbers (periodically updated as hardware improves) are the calibration tool for system design. The orders of magnitude matter more than the exact figures.
**The canonical table:**
| Operation | Latency | Notes | |---|---|---| | L1 cache reference | ~1 ns | | | L2 cache reference | ~4 ns | 4× L1 | | L3 cache reference | ~40 ns | 10× L2 | | Main memory (DRAM) | ~100 ns | 100× L1 | | NVMe SSD read | ~100 µs | 1,000× memory | | HDD seek | ~10 ms | 100× SSD | | Read 1 MB sequentially from memory | ~25 µs | | | Read 1 MB sequentially from SSD | ~1 ms | | | Round-trip in same datacenter | ~500 µs | | | Cross-region network (US-EU) | ~150 ms | 300× datacenter RTT | | DNS lookup | ~20–100 ms | Varies |
**The ratios that matter most for architecture:**
- Memory is ~1,000× faster than SSD — keep hot data in RAM - SSD is ~100× faster than HDD — use SSD for latency-sensitive workloads - In-datacenter network is ~300× faster than cross-region — minimize cross-region synchronous calls - CPU operations are ~100,000× faster than disk — a tight loop hitting disk on every iteration is catastrophic
**Derived implications:** - A cache miss that hits the database costs ~500 µs (network) + query time; Redis keeps this under 1 ms total - Synchronous cross-region calls in the critical path add 150 ms+ — use async replication or CDN for user-facing latency - Sequential disk reads are 10–100× faster than random — batch and sort writes (LSM trees, log-structured storage)
These numbers change as hardware evolves (NVMe is 10× faster than SATA SSD) but the relative order and ratios are stable benchmarks.
Correctly orders the latency tiers from ns to ms and gives the correct order-of-magnitude ratios between memory, SSD, and network.
Derives architectural implications from the numbers (Redis justification, cross-region async, sequential vs random IO), and knows NVMe vs HDD distinction.
Reading the answer is step one. Explaining it unprompted — under interview pressure — is what actually matters. Get AI-graded feedback on your answer with follow-up probes on your weak points.
Get Graded — Free Assessment