Cycles per instruction is a form of computer measurement that calculates the amount of time to finish an instruction using the clock cycles of the processor and the instruction count of the program. The cycles per instruction along with the instruction count of a program determine its cycle count, and the cycle count multiplied with the clock cycle time will provide the central processing unit (CPU) execution time. CPU times are used to compare the performances of different computer processors.
- Skill level:
Things you need
- CPU clock cycles count
- Instruction count
Convert the CPU clock cycles count into scientific notation. Scientific notation allows the data to be presented in shorthand by ridding it of excessive zeroes. Write down only the number right before the comma where the zeroes start. Add the zeroes up that you are discarding and write them as an exponential power of 10. Write the shortened number and the power of 10 as a two terms being multiplied together. For example, if the count is 300,000,000 cycles, convert it to 300 x 10^6.
Convert the instruction count into scientific notation. For example, if the instruction count is 30,000,000, convert it to 30 x 10^6.
Divide the CPU clock cycles count by the instruction count. For example, divide 300 x 10^6 by 30 x 10^6. The answer will be 10. This is the cycles per instruction.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for