Performance Analysis

A CPU design change raises clock frequency 1.5× but also raises CPI 1.2× (instruction count unchanged). How many times faster is execution?

  1. A1.25×
  2. B1.5×
  3. C1.8×
Show answer and explanation

Answer: A. 1.25×

Execution time is instruction count × CPI ÷ frequency, so the new time is1.21.5=0.81.2 ÷ 1.5 = 0.8of the original and the speedup is 1 ÷ 0.8 = 1.25×. Deepening the pipeline to raise frequency often increases CPI, for example through larger branch misprediction penalties. Frequency alone suggests 1.5×, but the real gain is only 1.25×. Performance must be judged by the product of all three factors.

  • A. Correct. 1.5 ÷ 1.2 = 1.25.
  • B. That ignores the CPI increase.
  • C. That multiplies 1.5 by 1.2.