0
votes

Following this post:

How to calculate MIPS for an algorithm for ARM processor.

I have a follow up question , Suppose i have only one process in my system ( working bare-metal on cortex M4F) , this process takes around ~ 3 seconds , the CPU frequency is 168 MHZ and the Cortex M4F is 1.25 MIPS/MHZ ,which gives me : 210 MIPS , so this is 3 * 210 = 630 MIPS total for the 3 second run time , am i correct ?

But ! , who can guarantee that in this 3 seconds i consume all of the available MIPS provided by the CPU ? if this is not then the 630 MIPS is somehow inaccurate .

What if i will measure my CPU usage through the whole run-time ( suppose i will get ~ %50 CPU usage) so the true MIPS value is 315 MIPS , am i correct ? what is most correct way to get MIPS estimate?

Thanks Michael

1
MIPS is "million instructions PER SECOND". So you better not multiply by 3 seconds if you want your results and dimensions to be correct. - user529758
Why Not? So how the calculation should go then ? - Fluffy
@userXXXX Why not? See my comment above. How? You stop at the 210MIPS part. - user529758
So what should i say to the costumer , if you want your application to run in 3 seconds you should provide me a CPU capable of performing at 210MIPS? - Fluffy
And the CPU Usage is not a factor ? *because i am pretty sure that i am not using %100 of my CPU ) - Fluffy

1 Answers

0
votes

You can use dhrystone to benchmark the DMIPS. See https://en.wikipedia.org/wiki/Instructions_per_second