Latency Numbers Every Programmer Should Know

Last updated: Mar 16, 2024

DescriptionLatency
L1 cache reference0.5 ns
Branch mispredict5 ns
L2 cache reference7 ns
Main memory reference100 ns
SSD random read150,000 ns
Send 2 KB over 1 Gbps network20,000 ns
Read 1 MB sequentially from memory250,000 ns
Round trip within same datacenter500,000 ns
Read 1 MB sequentially from SSD1,000,000 ns
Disk seek10,000,000 ns
Read 1 MB sequentially from disk20,000,000 ns

Click to view Interactive Latency Numbers Over Time in History