How to measure IPC?

miner_1130

Reputable
Sep 26, 2015
38
0
4,540
What's a measurement to for the IPC (Instructions per cycle) on the CPU? Is there any unit to measure the IPC of the CPU? i.e. I have an i7-4790k, what's the
The IPC of the Haswell Refresh Architecture?
 
Solution
How to measure: you take a piece of code, calculate the number of machine-level instructions required to complete it, then use the high-performance timers to calculate the number of clock cycles required to complete it on the actual hardware. Divide the number of instructions by the number of CPU ticks, you get the IPC for that specific workload on your specific CPU/system.

Since how well the scheduler can fill execution ports is heavily dependent on instruction mix and data dependencies, actual IPC can vary drastically between different workloads.

InvalidError

Titan
Moderator
How to measure: you take a piece of code, calculate the number of machine-level instructions required to complete it, then use the high-performance timers to calculate the number of clock cycles required to complete it on the actual hardware. Divide the number of instructions by the number of CPU ticks, you get the IPC for that specific workload on your specific CPU/system.

Since how well the scheduler can fill execution ports is heavily dependent on instruction mix and data dependencies, actual IPC can vary drastically between different workloads.
 
Solution