简体   繁体   中英

MIPS calculation on ARM processor

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM