Performance

Amdahl's Law

The speedup from parallelization is limited by the sequential portion of the task.

performance scaling architecture

Gene Amdahl showed that if a program is 95% parallelizable, the maximum theoretical speedup is 20x—no matter how many processors you add. The 5% sequential portion becomes the bottleneck.

Formula

`Speedup = 1 / (S + P/N)` where S = serial fraction, P = parallel fraction, N = processors.

In Practice

Enforce this law (and 100+ more) in your AI coding agents with DevLaws.

Open DevLaws All laws →