danieleff / STM32GENERIC

Generic implementation of Arduino for STM32 boards
https://danieleff.github.io/STM32GENERIC/
116 stars 88 forks source link

Whetstone benchmarks to slow #14

Open ChrisMicro opened 7 years ago

ChrisMicro commented 7 years ago

STM32F103,72MHz is ok: Loops: 1000, Iterations: 1, Duration: 13100 ms. C Converted Single Precision Whetstones: 7.63 MIPS

Nucleo F030R8, 48Mhz? Loops: 1000, Iterations: 1, Duration: 46423 ms. C Converted Single Precision Whetstones: 2.15 MIPS

ChrisMicro commented 7 years ago

STM32F7 Discovery Loops: 1000, Iterations: 1, Duration: 2150 ms. C Converted Single Precision Whetstones: 46.51 MIPS

The STM32F4 Discovery is about 109MIPS and the F7 should be faster.

danieleff commented 7 years ago

With the hardware float update, STM32F7 Discovery should be now much faster. I do not know about F030R8, it might be just that slow.

ChrisMicro commented 7 years ago

Hi Daniel, now the F7 is really faster: Loops: 1000, Iterations: 1, Duration: 493 ms. C Converted Single Precision Whetstones: 202.84 MIPS very good :+1:

Regarding the F030@48MHz: I would expect that it is faster than the 2.15 MIPS because the F103 has 7.63@72Mhz. Could it be a waitstate issue ?