Amdahl's Law

Amdahl's law states that the performance improvement to be gained from using some faster mode of execution is limited by the fraction of the time the faster mode can be used.

A program X is N % faster than program Y if:

Consider the following example:

Amdahl's Law :

                                                  where     f - fraction of a program that is enhanced,
                                                                  s - speedup of the enhanced portion

Compare different cases