In Ideal Case, Speed Up Factor = no. of Stages
Here Speed Up Factor = 5 , So no. of Stages = 5
So, Branch penalty = 4
Avg. no. of stalls = (frequency of unconditional branch instruction + frequency of conditional branch instruction ) * branch penalty
Avg. no. of stalls = ( 0.05 + 0.1*0.7 ) * 4
Avg. No. of Stalls = 0.48
Avg. CPI = 1+0.48 = 1.48
new Speed Up Factor = no. of stages / avg. CPI …...in ideal case
new Speed Up Factor = 5/1.48 = 3.378
% LOSS = ((Old Speed Up – New Speed UP) / Old Speed Up)* 100
% LOSS = (( 5 – 3.378 ) / 5) * 100
%LOSS = (1.622 / 5 )* 100 = 32.44%
ANSWER = 32.44% loss