Tuesday, March 28, 2017

Operation latency

From:
https://fusiontables.google.com/DataSource?snapid=S523155yioc
Latency numbers every programmer should knowJeff Dean (http://research.google.com/people/jeff/)

operation
 
latency (ns)
 
 
L1 cache reference0.5
Branch mispredict5
L2 cache reference7
Mutex lock/unlock25
Main memory reference100
Compress 1K bytes with Zippy3,000
Send 2K bytes over 1 Gbps network20,000
Read 1 MB sequentially from memory250,000
Round trip within same datacenter500,000
Disk seek10,000,000
Read 1 MB sequentially from disk20,000,000
Send packet CA->Netherlands->CA150,000,000

No comments:

Post a Comment