2.3 Speedup, Scaling, and Efficiency

MEASUREMENTSTATUS: DEVELOPINGLEVEL: INTERMEDIATEREVIEWED: 2026-10-21

Speedup is the ratio of single-worker time to multi-worker time. Parallel efficiency is speedup divided by the number of workers. These numbers are easy to manipulate. A poor baseline manufactures impressive-looking speedup.

2.3.1 Understanding the ratio: baseline matters

Speedup is the ratio of baseline time to parallel time. The parallel time is usually accurate. The baseline is where deception hides.

The baseline determines everything

Speedup is a ratio. Divide a large baseline by a small multi-worker time and the ratio looks impressive. A slow baseline hides the hard work. If you want an impressive-looking speedup number, use a poor baseline. If you want a truthful number, use the best baseline you can write.

Worked example: good baseline versus poor baseline

Assume a parallel implementation that runs a task in 10 seconds with 8 workers.

Good baseline: You write the best serial algorithm you can. It runs in 35 seconds. Speedup is 35 ÷ 10 = 3.5x. Parallel efficiency is 3.5 ÷ 8 = 44 percent. These are the numbers to report.

Poor baseline: You write a naive serial version that is unoptimized. It runs in 80 seconds. Speedup is 80 ÷ 10 = 8x. Parallel efficiency is 8 ÷ 8 = 100 percent. This looks perfect but is deceptive because the baseline was poor.

The parallel implementation is the same in both cases. Only the baseline changed. The speedup numbers are 3.5x versus 8x, better than a twofold difference, both from the same parallel code.

Disclose your baseline. If the baseline includes startup time that multi-worker runs do not, the speedup is misleading. If the baseline is unoptimized and the parallel code is optimized, the comparison mixes optimization and parallelization. A speedup of 10x from a poor baseline can say less than a speedup of 1.5x from the best sequential algorithm you can write.

2.3.2 Strong scaling versus weak scaling

Strong scaling

Strong scaling measures speedup on a fixed problem size. Add more workers. Does the same problem finish faster? How much faster? A problem that is 90 percent parallelizable has a speedup ceiling of about 10x no matter how many workers you add.

Strong scaling reveals limits. As you add workers, speedup grows slower. Eventually it stalls. This tells you that something is limiting: communication, load imbalance, or a serial bottleneck.

Weak scaling

Weak scaling grows the problem with the worker count, so each worker keeps the same amount of work. Double the workers and double the input: ideal weak scaling keeps the run time the same. Weak scaling often looks better than strong scaling because the serial part usually stays about the same in absolute time while the parallel work grows, so the serial part becomes a smaller share of each run. That is Gustafson’s argument (see Further reading).

Report both or choose one and explain why. If you care about finishing one large problem faster, report strong scaling. If you care about the throughput of a data processing pipeline, report weak scaling. Say plainly which one you measured, because the choice moves the numbers a long way.

2.3.3 Parallel efficiency dropping with worker count

Parallel efficiency is speedup divided by worker count. If you achieve 8x speedup with 8 workers, efficiency is 8 ÷ 8 = 100 percent (perfect, unrealistic). If you achieve 8x speedup with 16 workers, efficiency is 8 ÷ 16 = 50 percent. This tells you how much you are leaving on the table.

Worked efficiency example

Assume strong scaling on a fixed problem:

  • 1 worker: 100 seconds (baseline)
  • 2 workers: 52 seconds, speedup = 100 ÷ 52 = 1.92x, efficiency = 1.92 ÷ 2 = 96 percent
  • 4 workers: 27 seconds, speedup = 100 ÷ 27 = 3.7x, efficiency = 3.7 ÷ 4 = 92 percent
  • 8 workers: 15 seconds, speedup = 100 ÷ 15 = 6.7x, efficiency = 6.7 ÷ 8 = 84 percent
  • 16 workers: 9 seconds, speedup = 100 ÷ 9 = 11x, efficiency = 11 ÷ 16 = 69 percent
  • 32 workers: 6 seconds, speedup = 100 ÷ 6 = 16.7x, efficiency = 16.7 ÷ 32 = 52 percent

Efficiency drops from 96 percent at 2 workers to 52 percent at 32 workers. This is normal and expected. Adding more workers brings diminishing returns. At 32 workers you are still getting 16.7x speedup, which is good, but each additional worker contributes less.

High efficiency at low worker counts means your workers are doing useful work. Low efficiency at high worker counts means workers are waiting or doing redundant work. If efficiency drops sharply when you add more workers, something is limiting: communication bandwidth, memory latency, load imbalance, or task granularity.

2.3.4 Amdahl’s law sets the ceiling

Worked example

Assume your serial code runs in 100 seconds. 80 seconds is parallelizable. 20 seconds is serial (cannot be parallelized). Amdahl’s law says:

Speedup(N) = 1 / (0.2 + 0.8/N)

With 4 workers: Speedup = 1 / (0.2 + 0.2) = 2.5x. Efficiency = 2.5 ÷ 4 = 62 percent. With 8 workers: Speedup = 1 / (0.2 + 0.1) = 3.3x. Efficiency = 3.3 ÷ 8 = 41 percent. With 16 workers: Speedup = 1 / (0.2 + 0.05) = 4.0x. Efficiency = 4.0 ÷ 16 = 25 percent. With infinite workers: Speedup approaches 1 / 0.2 = 5x.

The ceiling is 5x. Amdahl’s law assumes that N workers run the parallel part at most N times faster and leave the serial part alone. If you see 10x speedup with 16 workers on this problem, that assumption has failed somewhere: the baseline is slow, the parallel version does less work than the serial one, or a cache effect changed the cost of the work itself.

2.3.5 Superlinear speedup and cache effects

Sometimes speedup exceeds the worker count. With 8 workers you get 10x speedup. Amdahl’s law does not predict this, because it assumes each worker runs its share at the single-worker speed. Superlinear speedup happens when parallel workers have better cache locality than the single worker, so that assumption no longer holds.

A single worker streaming through a dataset can miss the cache repeatedly. Eight workers each working on smaller pieces can fit their data in L3 cache. The working set per worker is smaller. Cache hits go up. Execution speed goes up beyond what Amdahl predicts.

The effect is real but bounded. Once each worker’s share fits in cache, splitting it further gains nothing more, while communication and load imbalance keep growing, so a superlinear result at 8 workers often turns sublinear at 32. Report superlinear results but explain them, for example: “With 8 workers, speedup is 10x due to cache effects. Each worker’s working set fits in L3 cache, whereas the single-worker version streams through main memory.” Do not claim a general speedup of 10x if it relies on a cache effect that disappears at different problem sizes.

2.3.6 Efficiency in the real world

A 2x speedup with 4 workers means 50 percent efficiency. This is not a failure. Startup cost, communication, and load imbalance consume the other 50 percent, and efficiency well below 100 percent is normal for real parallel systems.

If efficiency is low, ask why. Are workers waiting? Is communication bandwidth exhausted? Is the problem too small? Is load balanced?

2.3.7 When speedup numbers lie

The baseline section above covers the first way: an unoptimized serial version against an optimized parallel one credits parallelization with what optimization did. If the parallel version is optimized, optimize the serial baseline too, and if they cannot both be equally optimized, say so.

Another way speedup numbers lie is through problem selection. Some problems parallelize perfectly (embarrassingly parallel). Others hit serial bottlenecks fast. Report speedup on a realistic problem, not the best-case problem.

2.3.8 The efficiency frontier

As you add workers, efficiency drops, and at some point another worker adds almost nothing. That point is the efficiency frontier for your problem.

Finding this frontier is valuable. It tells you how many workers make sense for your workload. If efficiency drops to 10 percent at 32 workers, you do not need 32 workers on problems of this size. Better to use 8 workers and redeploy the others to other workloads.

Further reading

  • Amdahl, G. M. (1967). “Validity of the Single Processor Approach to Achieving Large Scale Computing Capabilities”. AFIPS Conference Proceedings 30, 483-485. https://doi.org/10.1145/1465482.1465560
  • Gustafson, J. L. (1988). “Reevaluating Amdahl’s Law”. Communications of the ACM 31(5), 532-533. The weak-scaling counterargument. https://doi.org/10.1145/42411.42415
  • Hoefler, T. and Belli, R. (2015). “Scientific Benchmarking of Parallel Computing Systems”. SC15. Covers baseline choice and how speedup gets misreported. https://doi.org/10.1145/2807591.2807644
  • Fox, G., Johnson, M., Lyzenga, G., Otto, S., Salmon, J. and Walker, D. (1988). Solving Problems on Concurrent Processors. Prentice Hall.

Where to go next

Back to top