BASIC Speed Benchmark Tests


Author Message
darthmite

Senior Member

Joined: 20/11/2011
Location: France
Posts: 240
Posted: 10:41pm 16 Aug 2015      

Hi
Graphics with stm32f7 dma2d work great in MMBasic.
Resolution is 480 x 272 in 16bits color (The normal stm32f7 4.3" discovery screen)
The original random number was a little slow , i then use now the integrated RNG that
work a little faster.But as you will see in the benchmark , without random we get
double pixel / second ...
New instruction i want made in future are the double and triple buffer.
With dma2d you can copy one buffer (480x272) to another in 1.7mS and will be useful
if you like to program games

Here are the preliminary results :


1000 Clear screen with random color Benchmark
1751 mS : 571.102 per seconds

10000 random Empty Circle Benchmark
1134 mS : 8818.34 per seconds

10000 random Filled Circle Benchmark
3874 mS : 2581.31 per seconds

10000 random Empty Box Benchmark
1411 mS : 7087.17 per seconds

10000 random Filled Box Benchmark
3113 mS : 3212.34 per seconds

10000 random Line Benchmark
1231 mS : 8123.48 per seconds

10000 random Pixel Benchmark
636 mS : 15723.3 per seconds

No random used now

1000 Clear screen
1738 mS : 575.374 per seconds

10000 Empty Circle Benchmark
586 mS : 17064.8 per seconds

10000 Filled Circle Benchmark
2803 mS : 3567.61 per seconds

10000 Empty Box Benchmark
912 mS : 10964.9 per seconds

10000 Filled Box Benchmark
2607 mS : 3835.83 per seconds

10000 Line Benchmark
718 mS : 13927.6 per seconds

10000 Pixel Benchmark
319 mS : 31348 per seconds



As usual , you will get more info on the UB page :
stm32f7 maximite port.

Cheers.

Theory is when we know everything but nothing work ...
Practice is when everything work but no one know why ;)