SDE & MLE Prep

Numbers Everyone Should Know

OperationLatency
L1 cache reference1 ns
Main memory reference100 ns
Compress 1 KB (fast codec)2 µs
Read 1 MB sequentially from memory3 µs
SSD random read16–100 µs
Round trip within a datacenter0.5 ms
Read 1 MB sequentially from SSD50 µs – 1 ms
Disk seek (HDD)2–10 ms
Round trip CA ↔ Europe150 ms
Power of 2≈Name
2¹⁰1 thousandKB
2²⁰1 millionMB
2³⁰1 billionGB
2⁴⁰1 trillionTB
2⁵⁰1 quadrillionPB

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.