Skip to content

Measuring Performance

Amdahl's (Heartbreaking) Law

Speedup due to enhancement E:

Speedup w/ E=Exec time w/o EExec time w/ E

If the enhancement E do not affect a portion s (s < 1) of a task, and accelerate the remainder (1 - s) by a factor P (P > 1):

  • Exec time w/ E = Exec time w/o E * (s + (1 - s) / P)
Speedup w/ E=1s+1sPP+1s

Consequence of Amdahl's Law: The amount of speedup that can be achieved through parallelism is limited by the serial portion of the program