Skip to content
  • Latency Numbers · System Design

Latency Numbers

LearnViaNotes @learnvianotes· 1 min read

Google's famous table — memorize these. They justify every architecture decision. Why cache? RAM is 300,000× faster than disk.

OperationLatencyIn Human TermsCategory
L1 cache reference0.5 nsBlink of an eye = 0.5 ns hereInstant
Branch mispredict5 ns10× L1Instant
L2 cache reference7 ns14× L1Very fast
Mutex lock/unlock100 ns—Fast
Main memory (RAM) reference100 ns200× L1Fast
Compress 1K bytes (Snappy)10,000 ns10 µsMedium
Send 2KB over 1 Gbps network20,000 ns20 µsMedium
Read 1MB sequentially from RAM250,000 ns250 µsMedium
Round trip within same datacenter500,000 ns0.5 msNoticeable
Disk seek (HDD)10,000,000 ns10 ms — 20,000× RAMSlow
Read 1MB sequentially from network10,000,000 ns10 msSlow
Read 1MB sequentially from disk30,000,000 ns30 msSlow
Packet: California → Netherlands → CA150,000,000 ns150 msVery slow

Key Takeaways

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report