The trapSwap a 3GHz chip for a 6GHz one — does your server really get twice as fast?
See the picture
button presses per second
3,000,000,000
one wait costs
100 ns
beats spent idle meanwhile
300
pressing buttons — one instruction, one beat.
Doubling the clock does not shorten the wait — it only raises the idle beats to 600. The default of 100 nanoseconds is a typical single read from main memory (the same row you will see in the next chapter's ladder).
Follow the sentences
1/36
If the gigahertz doubles, does it really run twice as fast?
Text mode advances to the next sentence every 3 seconds.
Picture it this way
However quick a teller's hands are, there is nothing to do while the paperwork is still on its way from the vault. Hands twice as fast do not make the trip any shorter.
A CPU is the same. The clock is a beat, and one button is pressed per beat. But if the value it needs next has not arrived, there is no button to press.
In the timeline above, green cells are beats where a button was pressed and empty cells are beats let go to waste. Raise the clock slider and the empty cells do not shrink — they multiply.
Now the numbers
computed · just now
Fetching one value from memory takes 100 nanoseconds. In that time a 3GHz CPU lets 300 beats go by — there is nothing to press.
So what happens if you raise only the clock, to 6GHz? The 100-nanosecond wait is unchanged, and the idle beats rise to 600. The only part that got faster is the part that was working.
These numbers are not written into the sentence. They are worked out while this page renders.
In one sentence
Clock speed is how fast the work goes when there is work — it does not shorten the waiting.
Progress is stored in this browser only (no account, no sync between devices).
Quick check
0 / 3 correct
1.For work that is mostly waiting, what happens if you double the CPU clock?
2.While a 3GHz CPU waits on one trip to memory, roughly how many beats go by?
3.You double the clock and change nothing else. What definitely doubles?
New words here
clock
How many beats per second the CPU keeps time to. 1GHz means one billion beats a second.
nanosecond
One billionth of a second. Far too short for a person to feel, but quite a long time for a CPU.