Amdahl's law

Twice the cores rarely means twice the speed. Most programs have some work that can't be split: steps that wait for each other, or a sync where every core has to agree. Extra cores only speed up the rest. A program that spends a fraction s of its time on serial work runs 1 / (s + (1 − s) / N) times faster on N cores. Drag the numbers to see how much that serial part costs.

On 16 cores:

With the cores on a linear scale, the ceilings take over: past a hundred cores or so, both lines are nearly flat.

With the cores on a log scale, every step to the right doubles them. That spreads out the first few dozen cores, where the two programs part ways.

Things to try

How it's built

Ported from the TangleSlider demo in wigglystuff.