Skip to content

Instantly share code, notes, and snippets.

@prehensilecode
Last active July 9, 2016 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prehensilecode/45483e13cb2af47ac1d4ec9df9fc088e to your computer and use it in GitHub Desktop.
Save prehensilecode/45483e13cb2af47ac1d4ec9df9fc088e to your computer and use it in GitHub Desktop.
#Operation Latency (ns) Comment
L1 cache reference 0.5
Branch mispredict 5
L2 cache reference 7 14x L1 cache
Mutex lock/unlock 25
Main memory reference 100 20x L2 cache 200x L1 cache
Compress 1K bytes with Zippy 3000
Send 1K bytes over 1 Gbps network 10000
Read 4K randomly from SSD 150000 ~1GB/sec SSD
Read 1 MB sequentially from memory 250000
Round trip within same datacenter 500000
Read 1 MB sequentially from SSD 1000000 ~1GB/sec SSD 4X memory
Disk seek 10000000 20x datacenter roundtrip
Read 1 MB sequentially from disk 20000000 80x memory 20X SSD
Send packet CA->Netherlands->CA 150000000
@prehensilecode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment