Hi,
at least some people reading this forum should have access to an Arduino Zero.
Please run the sketch attached to this thread
http://forum.arduino.cc/index.php?topic=391511.0
and report the numbers (for -Os size optimized default and -O3 optimized, you can change in Arduino IDE platform.txt) in this thread
http://forum.arduino.cc/index.php?topic=397480.msg2740647#msg2740647
for comparison of >16MHz Arduino models (and ESP8266-12E) pure integer computing performance on a single sample. I have determined the numbers for Arduino Due and ESP8266-12E already.
Thanks for your support,
Hermann.
Can somebody please run the sketch on Arduino Zero?
nathancamp provided both Arduino 101 numbers here.
This is the updated table while waiting for MKR1000 and Arduino Zero numbers:
model |
|
-Os |
|
-O3 |
|
speed |
|
processor |
|
Wifi |
101 |
|
846 |
|
791 |
|
32MHz |
|
Intel® Curie |
|
- |
Due |
|
548 |
|
494 |
|
84MHz |
|
ATSAM3X8E |
|
- |
MKR1000 |
|
|
|
|
|
48MHz |
|
SAMD21 Cortex-M0+ |
|
yes |
Zero |
|
|
|
|
|
48MHz |
|
ATSAMD21G18 |
|
- |
ESP8266-12E |
|
612 |
|
304 |
|
80MHz |
|
Tensilica Xtensa LX106 |
|
yes |
Hermann.
What's the point of this? You're comparing processors that quite frankly can't be compared to each other.
Here you are, for the zero (actually a .org m0):
with -Os:
47| 29|101|
113| 59| 5|
17| 89| 71|
1038us
With -O3:
47| 29|101|
113| 59| 5|
17| 89| 71|
825us
You can change the compiler's optimization setting by using the #pragma directive at the beginning of your sketch:
#pragma GCC optimize ("-O3") // Optimise the compiler for speed over code size