Performance Analysis
A part taking 50% of total time is made 4× faster. What is the overall speedup (Amdahl's law)?
- A2×
- B1.6×
- C4×
Show answer and explanation
Answer: B. 1.6×
The new time is the unchanged 50% (0.5) plus the accelerated 50% (0.5 ÷ 4 = 0.125), totaling 0.625. The speedup is 1 ÷ 0.625 = 1.6×. No matter how much the improved part is accelerated, the other 50% remains, so the overall speedup can never exceed 2×. Large overall gains require finding and improving the parts that take most of the time.
- A. Even eliminating that part entirely caps the speedup at 2×.
- B. Correct. 1 ÷ (0.5 + 0.5 ÷ 4) = 1.6.
- C. Only half of the total was sped up.