What is Parallel efficiency?

Parallel speedup divided by the number of processors, indicating how effectively the cores are used.

Field: Performance Analysis

Japanese name: 並列効率

Definition and calculation

Parallel efficiency is the speedup divided by the number of processors (cores). The speedup is the run time on one core divided by the run time on p cores. If 8 cores give a speedup of 6, the parallel efficiency is 6 ÷ 8 = 0.75, or 75%. The ideal is a speedup equal to the number of cores, in which case the efficiency is 100%. With 80 s on one core and 12.5 s on 8 cores, the speedup is 6.4 and the efficiency is 80%.

Why efficiency falls

When there is a serial part that cannot be parallelized, its time does not shrink as cores are added. Waiting for locks, uneven distribution of work, communication between cores and contention for memory bandwidth also lower efficiency. Take the case in Amdahl's law where 90% can be parallelized. The speedup on 10 cores is 1 ÷ (0.1 + 0.9 ÷ 10) ≈ 5.3. The efficiency is about 53%. Efficiency usually falls as more cores are added.

Use and cautions

Measuring efficiency while changing the number of cores shows how many cores are worth using. At an efficiency of 50%, half of the total core time is not contributing to speedup. The value changes depending on whether the one-core baseline is the fastest serial program or the parallel program run on one core. When the divided data fits in the cache, efficiency occasionally exceeds 100%. Weak-scaling efficiency is a separate metric defined as a ratio of times.

Try it: questions about Parallel efficiency

Running in parallel on 8 cores is 6× faster than on 1 core. What is the parallel efficiency?

  1. A75%
  2. B133%
  3. C48%
Show answer and explanation

Answer: A. 75%

Parallel efficiency is speedup divided by core count and indicates how effectively the cores are used.68=75 %6 ÷ 8 = 75%, three quarters of the ideal 8×. The remaining 25% is lost to the serial part that cannot be parallelized, as well as to synchronization waits, load imbalance, communication and contention for memory bandwidth. Efficiency tends to fall as cores are added, so the core count is chosen by how well efficiency holds up.

FAQ

Is it worth adding cores when parallel efficiency is low?

It can be. Even if efficiency falls, the run time gets shorter as long as the speedup keeps rising. The total core time used increases, however, so the decision weighs the time saved against the resources consumed.

How does it differ from speedup?

Speedup says how many times faster the run became, and parallel efficiency divides that by the number of cores to give a per-core value. Parallel efficiency is easier to read when comparing results obtained with different numbers of cores.

Books on Performance Analysis Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

Semiconductor, Electronics and Computing Calculators

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary