cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring compiler performance

slaviuspan
Associate II
Posted on October 04, 2016 at 13:57

Hello. Can you help me to measure perfomance of 3 compilers; Keil, IAR and SW4STM32. For example, using the Dhrystone or other benchmark. I use STM32F4-DISCOVERY with stm32f407vg. 

P.S.

I'm a newbie) Sorre for my English.

#!stm32f4-!stm32f407vg
4 REPLIES 4
Posted on October 04, 2016 at 18:16

Ok, so can you configure a TIM and observe the count across the code you want to benchmark, or use the DWT_CYCCNT to count processor cycles?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
slaviuspan
Associate II
Posted on October 05, 2016 at 13:22

I have a Dhrystone benchmark projecy for8 But I don't understand how it works. I need something similar for STM32F407VG

________________

Attachments :

DHRY.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtmB&d=%2Fa%2F0X0000000aWl%2FktlZJ.aDH_vVOzc5LMCXVreYMfZIYEhM9Z_pf8s4Ct8&asPdf=false
Posted on October 05, 2016 at 22:32

But I don't understand how it works.

That would seem to devalue the usefulness of doing the test rather a lot...

http://infocenter.arm.com/help/topic/com.arm.doc.dai0273a/DAI0273A_dhrystone_benchmarking.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 20, 2016 at 20:18

Keil, Level 3, Optimize for Time

STM32F4-DISCO Running at 192 MHz,

Microseconds for one run through Dhrystone:    2.8 

Dhrystones per Second:                      357995.2 

STM32F4-DISCO Running at 168 MHz,

Microseconds for one run through Dhrystone:    3.2 

Dhrystones per Second:                      313479.6 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..