Machine A runs at 2 GHz with CPI 2; machine B runs at 3 GHz with CPI 2.5 on the same program and instruction count. Which statement is correct?
Correct answer B. B is 1.2 times faster than A
Explanation
Time per instruction is CPI / clock rate: A takes 2 / 2 GHz = 1.0 ns and B takes 2.5 / 3 GHz ≈ 0.833 ns. The ratio 1.0 / 0.833 = 1.2, so B is 1.2 times faster. Comparing clock rates alone (3 / 2 = 1.5) ignores B's higher CPI. Clock speed is only meaningful together with CPI and instruction count.
Answer checked How we write and check questions
Discussion