Instruction Performance


The number of clock cycles required for a program can be written as
   CPU clock cycles = Instructions for a program × 

Average clock cycles per instruction (CPI)
where clock cycles per instruction (CPI) is the average number of clock cycles per instruction for a program or program fragment.

Using the Performance Equation
Consider two different processors P1 and P2 executing the same instruction set with the clock rates and CPIs given in the table.
Processor Clock Rate CPI
P1 2.5 GHz 2.0
P2 3.0 GHz 2.5

Which processor has the higher performance and by how much?  




      Did you have a good vacation?    
      Not really. I was sick as a dog the whole time.