The unchanged work still takes time
Amdahl’s law describes the effect of accelerating part of a fixed workload while the rest remains unchanged. If a fraction f of the original duration is improved by a factor k, the modeled total speedup is one divided by the sum of one minus f and f divided by k. The fractions refer to the original execution time, not the percentage of source-code lines.
The model is useful because an extremely fast component can coexist with a modest improvement to the full task. LLNL discusses this limitation in its parallel computing tutorial.
Calculate an original example
Imagine a job that originally takes 100 seconds. Reading and preparing the input takes 20 seconds, the calculation takes 70, and producing the output takes 10. Suppose an acceleration changes only the calculation, making that portion five times faster. Its new duration is 14 seconds, and the complete task takes 44 seconds.
The modeled overall speedup is 100 divided by 44, approximately 2.27. Calling the whole application five times faster would be wrong. Five describes the changed component under the hypothetical assumptions. About 2.27 describes the modeled whole task. Both values come from the hypothetical model rather than a measurement of a real machine.
Consider the limiting case
Even if the calculation took no time at all, the unchanged 30 seconds would remain. The maximum speedup under this model would be 100 divided by 30, approximately 3.33. Increasing the calculation’s acceleration beyond a certain point gives diminishing improvement to the total.
This can guide prioritization. Once the calculation becomes short, input preparation or output handling may become the next bottleneck. The model does not say that further improvement is impossible; it says that further improvement requires changing something beyond the originally selected portion. Improving the input format or avoiding unnecessary output would change the assumptions.
Include the costs introduced by acceleration
Suppose the faster calculation also requires eight seconds of conversion and transfer. The new total is 52 seconds, not 44, and the modeled speedup is approximately 1.92. If the input is already in the required representation, that conversion may not belong to every run. Explain which case represents the actual workflow.
NVIDIA’s best-practices guide uses whole-application assessment to guide acceleration decisions. The relevant habit is to identify measured time consumers before selecting an optimization target. A visually complicated section of code is not necessarily where the program spends most of its time.
Know when the model changes
Amdahl’s fixed-workload model does not automatically describe a larger problem made possible by more hardware. It also assumes that the accelerated and unchanged portions can be accounted for as stated. Overlap, caching changes, contention, different algorithms, and altered memory use can complicate that accounting.
For example, overlapping input preparation with computation might make elapsed time depend on the slower pipeline stage rather than the sum of both stages. Alternatively, adding workers could increase synchronization and memory contention. In either case, write a model that matches the actual execution instead of forcing the observed system into a simple formula.
Use it to ask better questions
When reviewing a speed claim, ask what fraction of the original task changed, whether the workload stayed fixed, which overheads were introduced, and where the complete timing begins and ends. Obtain the original and new total durations as well as component measurements.
The formula provides a useful consistency check, not a substitute for experiments. Repeated measurements and correctness verification remain necessary. Read algorithm versus hardware for choosing an improvement target and research methods for reporting an actual comparison with enough evidence to interpret it.