Performance means getting a program done in less time. The usual measure is just the inverse of cpu execution time:
performance = 1 / time, where time = instructions × CPI × clock period
To compare two designs, compute the time for each on the same program. The speedup of B over A is time(A) ÷ time(B).
The equation shows the three levers, and why no single number tells the whole story:
- Instruction count: depends on the program, the compiler and the instruction set.
- CPI: depends on how the hardware carries out each instruction. Single-cycle designs have CPI = 1; multi-cycle designs more.
- Clock period: depends on the circuits and on how much work each cycle does. Pipelining shortens it.
A faster clock with a much higher CPI can lose. Fewer, more complex instructions can lose if each takes many more cycles. Always multiply all three.