The Naive way is to do 6 846 310 893 / 45 = 152 140 242 ~ 152 MIPS
. This makes an assumption that each instruction takes exactly one cycle on your processor.
Another approach would be to use tool such as massif and estimate the MIPS using a file of the known length (45 seconds in your case).
valgrind --tool=massif --stacks=yes --detailed-freq=100 --massif-out-file=out.msf your_binary
ms_print --threshold=100 out.msf
Then at the bottom you will get something like:
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
81 721,831 600 0 0 600
82 728,199 448 0 0 448
Take the final value for time(i)
, divide it by the number of seconds and by $1e6$. The result should be your approximate MIPS.
6 846 310 893 / 45 = 152 140 242 ~ 152 MIPS
, right? $\endgroup$ – jojek♦ Feb 8 '18 at 8:55cycles/second
, I don't thing it'sMIPS
. $\endgroup$ – Danijel Feb 8 '18 at 9:00