Pretend a single CPU cycle takes one second. How long does everything else take?
Start the clock and watch the rows arrive one by one.
Where the numbers come from
Rounded, typical orders of magnitude from Jeff Dean's "Latency numbers every programmer should know", as updated by Colin Scott (2020). Real hardware varies: the point is the gaps between the rows, not the exact digits. The bars use a logarithmic scale; on a straight one the first ten rows would be invisible.
About this tool
Orders of magnitude
Each step down the list is roughly ten to a thousand times slower. The bars use a logarithmic scale, a straight line would not fit on any screen.
Why it matters
A RAM access costs about 100 cycles, a disk seek millions. Caches, batching and avoiding round trips are where real speed comes from.
Light is slow
The trip from California to the Netherlands and back is bounded by the speed of light in fibre. No faster CPU will ever fix that.
Learn more
Keyboard
- Space
- Start or stop the clock
- T
- Switch between felt and real time
- ←→
- Slower or faster clock