Slide 30
Slide 30 text
CPU-Registers
(~1 cycle, 0.33 ns)
L1-Cache
(~3 cycles, 1 ns)
L2-Cache
(~14 cycles, 4.7 ns)
http://duartes.org/gustavo/blog/post/what-your-computer-does-while-you-wait
RAM
(~250 cycles, 83 ns)
HDD-Seek
(~41,000,000 cycles, ~13.7ms)
NETWORK
(~240,000,000 cycles, ~80ms)
100
101
102
103
104
105
106
107
108
CPU
CYCLES
if a single Instruction would take 1 second to
execute, the HTTP-request to google.com would
require us to wait for 8 years and more.
BLOCKING vs. NON-BLOCKING
WHERE IS THE DIFFERENCE?
logarithmic scale!