Decomposing the original execution time
Interpreting the limit and efficiency
- Fix the same workload, reference algorithm and one-processor time T1. Fraction p is its parallelizable time share and 1−p its serial share; neither is a percentage of code lines. Uppercase P in the reference formula denotes the same fraction p.
- On N equally capable processors, (1−p)T1 stays unchanged while pT1 ideally becomes pT1/N. Add these two times first. Integer N≥1 and 0≤p≤1 keep TN positive; communication, synchronization and load imbalance are not added.
- Divide T1 by TN: S=1/[(1−p)+p/N]. For p=0.9 and N=8, S=80/17≈4.705882 and E=S/N=10/17≈0.588235. Efficiency compares speedup with ideal linear scaling; it does not measure processor utilization.
- Distinguish finite calculation, limit and inverse. For 0<p<1, every finite S is strictly below 1/(1−p); p=0 gives S=1 and p=1 gives S=N. Inverting p=(1−1/S)/(1−1/N) requires N>1 and 1≤S≤N. At N=1, every fraction gives S=1, so p is not identifiable.
Ideal efficiency compares speedup to processor count. It is not measured processor utilization.[1][2]
For fixed 0<p<1, serial time stays unchanged and the limit 1/(1−p) is not attained at any finite N. In contrast, p=0 gives S=1 for every N. Gustafson’s scaling considers a different question: workload grows with available resources. Its statements must not be read as conflicting measurements of the same fixed problem.[1][2]
More processors with unchanged work
Free with a Quanta account. Your download stays ready after registration.
Two fully worked examples
80 percent parallel time on four processors
- Given
- T1=100 s, p=0.8 and N=4. Perfect division of parallel time, with no extra costs.
- Find
- Find runtime, speedup, efficiency and the limit.
Keep serial and parallel portions separate.
Calculate the time ratio and normalized efficiency.
Result: Ideal runtime is 40 s, speedup 2.5 and efficiency 62.5%. The asymptotic limit is 5.
Check: Four processors do not quadruple this task’s performance: 20 s remain serial. 2.5 lies between 1 and 4 and below the limit 5.
Recovering the required parallel time fraction
- Given
- In the ideal model, N=8 processors should produce S=3.2.
- Find
- Calculate the required fraction p and efficiency.
For N>1, p can be isolated uniquely.
Substitute the result into the original equation.
Result: p≈0.785714, about 78.57% of original execution time. Ideal efficiency is 3.2/8=0.4, or 40%.
Check: This is the time fraction required by the model, not a program measurement. An observed speedup that includes overhead cannot automatically be interpreted as this p.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five solved exercises with different learning goals
Calculate · Foundation
For p=0.9 and N=8, calculate ideal speedup and efficiency.
Show hint
Split normalized time into (1−p)+p/N, then divide speedup by N to obtain efficiency.
Learning goal: Identify remaining serial time before dividing.
Show solution and calculation
S=1/(0.1+0.9/8)=80/17≈4.705882.
E=S/8=10/17≈0.588235, about 58.82%.
Rearrange · Application
Which parallel time fraction is needed for S=2 with N=4?
Show hint
Isolate p from 1/S=1−p(1−1/N), then check 0≤p≤1.
Learning goal: Check an inverse and its admissible range.
Show solution and calculation
p=(1−1/2)/(1−1/4)=2/3≈0.666667.
Check: (1−p)+p/4=1/3+1/6=1/2, hence S=2.
Interpret · Application
For p=0.8, the limit is 5. Can a finite processor count reach exactly that speedup in the ideal model?
Show hint
At finite N with p>0, the additional denominator term p/N stays strictly positive.
Learning goal: Distinguish an asymptotic bound from a finite result.
Show solution and calculation
No.
At finite N, p/N>0, so the denominator is strictly greater than 0.2 and S is strictly below 5.
Only the limit N→∞ gives 5.
Error analysis · Application
80% of source-code lines can run in parallel. Does that imply p=0.8?
Show hint
Compare the code sections’ execution times on one processor; line count does not measure those times.
Learning goal: Distinguish the time-based model parameter from a structural program measure.
Show solution and calculation
No. p is the fraction of reference execution time, not the fraction of code lines.
A few serial lines may consume almost all runtime.
A runtime decomposition for the specified task and reference environment is needed.
Transfer · Challenge
For T1=100 s, p=0.8 and N=4, add 8 s overhead to ideal parallel execution. Find the extended speedup and compare it with Amdahl.
Show hint
First calculate ideal runtime in seconds, then add the explicitly supplied eight seconds.
Learning goal: Extend an ideal model with explicitly supplied costs.
Show solution and calculation
Ideally T4=40 s and S=2.5.
With the specified extra costs, runtime is 48 s and S=100/48=25/12≈2.083333; E=25/48≈0.520833.
These additional costs define an extended model here, not a prediction from the unchanged calculator.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Limits, measurements and calculator
The calculator offers S, E and the asymptotic limit from p and N, plus p from S and N. N is an integer from 1 to 1024; this input cap is an interface limit, not a natural constant. Percent units convert 80% to p=0.8. For N>1, inversion requires 1≤S≤N. At N=1, S always equals 1: S=1 does not uniquely determine p, while other speedups are inconsistent.[1][2]
The model omits communication, synchronization, load imbalance, memory bandwidth, clock-frequency changes and algorithm changes. Measured speedup can therefore be smaller. A measured superlinear result is not an outcome of this equation; it requires other effects or a check of the comparison baseline. The inputs p and N alone provide no hardware promise. CPU execution time from instructions, CPI and clock rate addresses another performance question and does not replace measured parallelization.[1][2]
Sources for this explanation
Quanta · Updated November 21, 2026
- Cornell Virtual Workshop: Amdahl’s Law — Amdahl’s Law: fixed workload, normalized serial-plus-parallel execution time, asymptotic limit; contrast with Gustafson.
- Oxford Research Software Engineering: Parallel Performance — Parallel Performance Laws: Amdahl and Gustafson; Scaling and Overheads. Numerical examples here are original calculations, not copied performance data.
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Developed fixed workload, time fractions and ideal limits with complete inverses and boundary cases.
Cite this reference page
Quanta. Amdahl’s law (parallel speedup). Updated November 21, 2026. https://quanta-study.de/en/formula-sheet/amdahl-gesetz-speedup
When citing a specific scientific statement, also cite the specialist source linked to that statement.