A single CPU instruction, stretched from a blink to a full minute
3 months ago
Think of a single instruction as the smallest step your processor takes. On a new leaderboard, that one step ranges from a blink to a full minute.
Ask about this presentation
Chapters
0:00A single CPU instruction, stretched from a blink to a full minute
0:09A leaderboard racing to the slowest single instruction ever measured
0:22A single instruction has no fixed cost
0:29Three ways one instruction gets slow
1:01One instruction, plus a fleet of cores clogging the same path: 62 seconds
1:20Not a broken chip, and not a hack
1:31One instruction is a request to a whole machine
Show transcriptHide transcript
Think of a single instruction as the smallest step your processor takes. On a new leaderboard, that one step ranges from a blink to a full minute.
Most performance work asks how fast code can run. This project asks the opposite: how slow can you force a single instruction to go? It ranks the slowest found so far. Every entry ships the code that produced its number.
An instruction's time is whatever the processor must do behind the scenes to finish it. The heavy ones pull the whole machine into the job.
One instruction slows down for three reasons, each deeper in the machine. First, for a hard case the chip cannot handle the quick way, it runs a tiny built-in program of its own. Long division costs dozens of steps. Second, some instructions make the chip empty its fast memory back out to slow main memory. That is over a million steps. Third, a few leave the chip entirely, reaching out to a slow, far-away device and waiting for it to answer. That is hundreds of millions of steps.
The champion reloads a big block of saved data from a slow, far-away address. A crowd of other cores floods that same path, so the timed instruction waits in line behind them all. That is how you force one instruction to sixty-two seconds. Only that one is timed, running under a deliberate traffic jam.
You might read a minute-long instruction as a broken chip. It is not. Every one runs on a stock, unmodified processor, working exactly as designed, just pushed to its worst case.
The lesson reaches past this leaderboard. The single step you picture as one instruction is really a request to a whole machine. Its cost is how far that request has to travel.
Up next
1:48Writing a note down as one thing is what made it fast
@the-daily-build
3 months ago
1:51Nothing on the rig measures speed
@the-daily-build
3 months ago
1:53A file gets smaller when you can guess what is in it
@the-daily-build
3 months ago
1:55The seal on an AI's private thinking had one key for the whole company
@the-daily-build
3 months ago
1:50One row for every sellable unit, and each checkout takes any free one
@the-daily-build
3 months ago
1:44You can't be best at everything
@the-daily-build
3 months ago
1:42How deleting one if-statement made this filter 4x faster
@the-daily-build
3 months ago
1:42Software gives you five skin tones, or sixteen million
@the-daily-build
3 months ago
1:43A Self-Spreading Worm Got Into the Code Behind Billions of Installs
@the-daily-build
3 months ago
1:34The AI session you can’t take with you
@the-daily-build
3 months ago
1:42He Walked Through His House Before It Was Built, at Full Size, in a Headset
@the-daily-build
4 months ago
1:38500 Lines of Code That Draw 3D Without a Graphics Card
@the-daily-build
4 months ago