Formula and method
For strong scaling, speedup S = 1 ÷ [(1 − p) + p ÷ N], where p is the parallel fraction and N is worker count. Runtime estimate = baseline runtime ÷ S; efficiency = S ÷ N. For idealized weak scaling, Gustafson speedup = s + (1 − s)N, where s = 1 − p. These are different workload assumptions.
Worked example
For a 1-hour baseline, p = 95%, and N = 16, the idealized strong-scaling speedup is about 9.14×, runtime is about 6.56 minutes, and efficiency is about 57.14%. The weak-scaling model gives 15.25× under its growing-workload assumption.
Strong scaling versus weak scaling
Strong scaling keeps the total problem size fixed while adding workers. It asks how much faster the same job might finish if parallel work is distributed across more resources. Amdahl’s law makes the serial fraction visible: if part of a job cannot run in parallel, that part limits the speedup no matter how many processors are added. This calculator reports an idealized curve with no extra communication, synchronization or imbalance cost.
Weak scaling holds the amount of work per worker approximately fixed, so the total problem grows as more workers are added. The Gustafson model is a way to discuss that different question. Its output should not be compared directly with strong-scaling runtime as if both described the same fixed job. Select the workload model that matches the question you are exploring.
Workers and baseline matter
“Worker” may mean a core, process, accelerator or node in a particular experiment. Record that definition, the one-worker or baseline run, problem size and software configuration. A nominal count of GPUs is not necessarily the same as a count of independent workers, especially when the program uses multiple processes per device or communication-heavy algorithms.
Real code can scale worse or occasionally behave differently because of memory bandwidth, network latency and bandwidth, input/output, cache effects, load balance, startup costs, contention, compiler choices and algorithm changes. Use measurements at multiple sizes to fit or check a model. This tool is for learning and scenario comparison, not a prediction of any particular cluster, HPL score or production runtime. A zero-overhead result is an optimistic mathematical baseline, not a promise.
References and source notes
Use the linked source to verify its edition, date, scope, units and measurement method before citing or comparing values. These references explain methodology; they do not mean Friendly Calculator has a live partnership or data feed from the listed organizations.