The Formula Toolkit
Memorize every one of these. They are all just ways to compute execution time.
1. Performance & "n times faster"
(the slower machine's time goes on top)
2. Clock
,
3. CPU Execution Time — Equation I
4. CPI (Cycles Per Instruction)
5. CPU Execution Time — Equation II (master equation)
Three levers: instruction count, CPI, clock rate.
6. Weighted / Average CPI
With percentages:
7. MIPS (Million Instructions Per Second)
⚠ Higher MIPS does NOT always mean faster. Trust execution time.
8. Amdahl's Law
If fraction is sped up by :
Make the common case fast.
Unit cheat sheet: · · · · · . If you're given GHz (a rate) divide by it; if given ps/ns (a time) multiply.