Dhrystone and Whetstone Benchmarks for STM32F103

Post here first, or if you can't find a relevant section!
User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by RogerClark » Mon Oct 17, 2016 8:56 pm

No problem

Wi6Labs have posted to another thread saying they will fix the issues, and make the board run at the correct speed, 80MHz

I think they said they will make the SPI speed default to 5MHz,which is higher than the AVR Arduino but I think this will be OK, as most devices will run at greater than 5MHz.

SPI speed is often set in the library for a specific peripheral eg. LCD screen, but these are often written for AVR, so need to be modified to support any other boards, even other Arduino ARM boards , like the Due.
But this is becoming less of a problem as more people use higher speed devices and libraries are modified to work with a wider variety of processors.

LMESTM
Posts: 4
Joined: Mon Sep 12, 2016 12:36 pm

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by LMESTM » Fri Oct 21, 2016 12:47 pm

Update on the clocks status - the fix has been delivered and is available
https://github.com/stm32duino/Arduino_C ... its/master
L476 core runs now at its default 80MHz speed
SPI speed has been udpated to 5MHz :-)
Also other settings like I2C have been updated accordingly
Enjoy
Laurent

User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by RogerClark » Fri Oct 21, 2016 7:52 pm

Thanks

User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by RogerClark » Tue Nov 29, 2016 3:41 am

Just ran the benchmark on my new F407VET and I get

Code: Select all

Dhrystone Benchmark, Version 2.1 (Language: C)
Execution starts, 3000000 runs through Dhrystone

Execution ends
Microseconds for one run through Dhrystone: 3.66
Dhrystones per Second: 273545.90
VAX MIPS rating = 155.69
Looks about right to me

User avatar
martinayotte
Posts: 1222
Joined: Mon Apr 27, 2015 1:45 pm

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by martinayotte » Tue Nov 29, 2016 2:38 pm

That's even better than the number I've provided back in Sept 2015 for my F405 :

VAX MIPS rating = 134.23

User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by RogerClark » Tue Nov 29, 2016 7:10 pm

What clock rate was your F405?

I just picked the F407 from the boards menu, and I think it sets the clock to 168MHz

User avatar
martinayotte
Posts: 1222
Joined: Mon Apr 27, 2015 1:45 pm

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by martinayotte » Tue Nov 29, 2016 7:24 pm

Same PLL 168Hz, from 8MHz crystal.
So, I don't understand where the differences comes from since F405/F407 should be the same (except for ETH and Camera I/F)

User avatar
RogerClark
Posts: 6917
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by RogerClark » Tue Nov 29, 2016 7:36 pm

ummm.

Did someone change the wait states in the core ?

User avatar
Pito
Posts: 1531
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by Pito » Sat Jan 07, 2017 5:37 pm

Hi, could you point me plz where in this thread one can find the most actual version of W or D benchmark in form of a sketch for BPill or any F103? Are those used recently the from post 1?
I want to run it on my new BlueZEX board to see how it performs :)
Pukao Hats Cleaning Services Ltd.

User avatar
martinayotte
Posts: 1222
Joined: Mon Apr 27, 2015 1:45 pm

Re: Dhrystone and Whetstone Benchmarks for STM32F103

Post by martinayotte » Sat Jan 07, 2017 7:35 pm

From the first page of the thread, it was http://www.saanlima.com/download/dhry21a.zip
But it is actually only Dhrystone ...

Post Reply