All benchmarks are artificial, but this one had me scratching my head. One hearsÂ that the BeagleBone Black is screamingly fast compared to the Raspberry Pi; faster, newer processor, blahdeblah, mcbtyc, etc. I found the opposite is true.
g++Â -OfastÂ Â card.cppÂ Â -o card
and then ran it with:
time ./card > /dev/null
The results are â€¦ surprising:
- Raspberry Pi: 4′ 15″
- BeagleBone Black: 12′ 39″ â†’ 3Ã— slower
(In comparison, my i7 quad-core laptop runs it in 8Â½ seconds.)
I don’t have any explanation why the BBB is so much slower. It’s almost as if the compiler isn’t fully optimizing under Ã…ngstrÃ¶m Linux.
Raspberry Pi: system info
$ uname -a Linux rpi 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux $ cat /proc/cpuinfo ProcessorÂ Â Â : ARMv6-compatible processor rev 7 (v6l) BogoMIPSÂ Â Â : 697.95 FeaturesÂ Â Â : swp half thumb fastmult vfp edsp java tls CPU implementerÂ Â Â : 0x41 CPU architecture: 7 CPU variantÂ Â Â : 0x0 CPU partÂ Â Â : 0xb76 CPU revisionÂ Â Â : 7 HardwareÂ Â Â : BCM2708 RevisionÂ Â Â : 000f
BeagleBone Black: system info
# uname -a Linux beaglebone 3.8.13 #1 SMP Tue Jun 18 02:11:09 EDT 2013 armv7l GNU/Linux # cat /proc/cpuinfo processorÂ Â Â : 0 model nameÂ Â Â : ARMv7 Processor rev 2 (v7l) BogoMIPSÂ Â Â : 297.40 FeaturesÂ Â Â : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls CPU implementerÂ Â Â : 0x41 CPU architecture: 7 CPU variantÂ Â Â : 0x3 CPU partÂ Â Â : 0xc08 CPU revisionÂ Â Â : 2 HardwareÂ Â Â : Generic AM33XX (Flattened Device Tree) RevisionÂ Â Â : 0000
Both boards are running at stock speed.
Update: I’ve tried with an external power supply, and checked that the processor was running at full speed. It made no difference. I suspect that Raspbian enables armhf floating point by default, while Ã…ngstrÃ¶m needs to be told to use it.