Latency Numbers Flashcards
1 ns (nanosecond)
10^-9 seconds
1 µs (microsecond)
10^-6 seconds = 1000 nanoseconds
1 ms (millisecond)
10^-3 seconds = 1 000 microseconds = 1 000 000 nanoseconds
L1 cache reference
0.5 nanoseconds
Branch mispredict
5ns
L2 cache reference
7ns
Mutex lock/unlock
100ns
Main memory reference
100ns
Compress k bytes with Zippy
10 000 ns = 10µs
Send 2K bytes over 1 Gbps network
20 000 ns = 20µs
Read 1 MB sequentially from memory
250 000 ns = 250µs
Round trip within the same data center
500 000 ns = 500µs
Disk seek
10 000 000 ns = 10 000 µs = 10 ms
Read 1 MB sequentially from the network
10 000 000 ns = 10 000 µs = 10 ms
Read 1 MB sequentially from the disk
30 000 000 ns = 30 000 µs = 30 ms
Send packet from CA -> Netherlands or Netherlands -> CA
150 000 000 ns = 150 000 µs = 150 ms