Consider two machines M1 and M2. For both machines, all instructions except for mispredicted branches take one cycle. Mispredicted branches take one cycle plus an additional misprediction penalty.
Machine A has a clock rate of 1.0 GHz and a misprediction penalty of 5 cycles.
Machine B has a clock rate of 2.0 GHz and a misprediction penalty of 20 cycles.
Branches are 25% of all instructions and 80% of branches are predicted correctly. Which of the following statement is correct?
(a) Machine A is faster than Machine B
(b) Machine B is faster than Machine A
(c) Both are same
(d) None of these