Numbers Everyone Should Know
| Operation | Latency |
|---|---|
| L1 cache reference | 1 ns |
| Main memory reference | 100 ns |
| Compress 1 KB (fast codec) | 2 µs |
| Read 1 MB sequentially from memory | 3 µs |
| SSD random read | 16–100 µs |
| Round trip within a datacenter | 0.5 ms |
| Read 1 MB sequentially from SSD | 50 µs – 1 ms |
| Disk seek (HDD) | 2–10 ms |
| Round trip CA ↔ Europe | 150 ms |
| Power of 2 | ≈ | Name |
|---|---|---|
| 2¹⁰ | 1 thousand | KB |
| 2²⁰ | 1 million | MB |
| 2³⁰ | 1 billion | GB |
| 2⁴⁰ | 1 trillion | TB |
| 2⁵⁰ | 1 quadrillion | PB |
Rules of thumb
- 1 day ≈ 86,400 s ≈ 10⁵ s; 1 M requests/day ≈ 12 QPS.
- A single modern server: ~10k–100k simple QPS (cache), ~1k–10k QPS for DB-backed reads.
- Redis: ~100k ops/s per node; Postgres/MySQL: a few k writes/s per primary.
- Availability: 99.9% ≈ 8.8 h/yr downtime; 99.99% ≈ 53 min/yr; 99.999% ≈ 5 min/yr.