Search code examples
cembeddedprocessorrtosthroughput

Throughput calculation using cycle count


Is it possible to determine the throughput of an application on a processor from the cycle counts (Processor instruction cycles) consumed by the application ? If yes, how to calculate it ?


Solution

  • If the process is entirely CPU bound, then you divide the processor speed by the number of cycles to get the throughput.

    In reality, few processes are entirely CPU bound though, in which case you have to take other factors (disk speed, memory speed, serialization, etc.) into account.