Skip to content

Instantly share code, notes, and snippets.

@BillAtHRST
BillAtHRST / latency.txt
Created May 31, 2012 16:21 — forked from jboner/latency.txt
Latency numbers every programmer should know
"Magic" Numbers
Operation Time (us) Source
L1 cache reference 0.0005 2,3
Execute typical instruction 0.0010 2,3
Branch mispredict 0.0050 2,3
Propagation delay in fiber-optic cable, per meter 0.0050 5
L2 cache reference 0.0070 2,3
Mutex lock/unlock (uncontested) 0.0250 2,3
Decode FAST message 0.0500 5