mbramwel
Regular Member
Joined: 10/07/2013 Location: CanadaPosts: 42 |
Posted: 05:04am 06 Aug 2013 |
Copy link to clipboard |
Print this post |
|
I noticed that many of us have a multitude of SBC systems kicking about. I am always curious to the speed of the various ARM boards running Linux.
Over the years, I have used a dhrystone benchmark to give me a feeling to the speed of a machine. Generally speaking, the faster machines give better/higher dhrystone numbers.
The only changes I have made over the years are small tweaks to make it work under GCC as well as some integer/float issues due to fast machines overflowing some counters.
The source code to some benchmarks can be found on my machine here:
wget http://web1.foxhollow.ca/b.tar.gz
---
My machine named gizmo.rootsgate.ca is running a RPi running Raspbian.
Here is the dhrystone20 output on Gizmo:
root@gizmo:/usr/local/benchmarks/dhry20# make clean; make
(set nonomatch;rm -f dhrystone dhrystoneR dhrystoneO dhrystoneRO *.o)
cc -O0 dhrystone.c -w -o dhrystone
Running dhrystone (No optimization, without registers)
./dhrystone
Dhrystone(1.1) time for 9,000,000 passes = 14
This machine benchmarks at 627,615 dhrystones/second
./dhrystone
Dhrystone(1.1) time for 9,000,000 passes = 14
This machine benchmarks at 625,869 dhrystones/second
./dhrystone
Dhrystone(1.1) time for 9,000,000 passes = 14
This machine benchmarks at 628,930 dhrystones/second
cc -O1 -DREG=register dhrystone.c -w -o dhrystoneR
Running dhrystone (Level 1 optimization, with registers)
./dhrystoneR
Dhrystone(1.1) time for 9,000,000 passes = 7
This machine benchmarks at 1,285,714 dhrystones/second
./dhrystoneR
Dhrystone(1.1) time for 9,000,000 passes = 6
This machine benchmarks at 1,287,553 dhrystones/second
./dhrystoneR
Dhrystone(1.1) time for 9,000,000 passes = 6
This machine benchmarks at 1,287,553 dhrystones/second
cc -O2 dhrystone.c -w -o dhrystoneO
Running dhrystone (Level 2 optimization, without registers)
./dhrystoneO
Dhrystone(1.1) time for 9,000,000 passes = 4
This machine benchmarks at 2,184,466 dhrystones/second
./dhrystoneO
Dhrystone(1.1) time for 9,000,000 passes = 4
This machine benchmarks at 2,238,805 dhrystones/second
./dhrystoneO
Dhrystone(1.1) time for 9,000,000 passes = 4
This machine benchmarks at 2,222,222 dhrystones/second
cc -O3 -DREG=register dhrystone.c -w -o dhrystoneRO
Running dhrystone (Level 3 optimization, with registers)
./dhrystoneRO
Dhrystone(1.1) time for 9,000,000 passes = 3
This machine benchmarks at 2,586,206 dhrystones/second
./dhrystoneRO
Dhrystone(1.1) time for 9,000,000 passes = 3
This machine benchmarks at 2,616,279 dhrystones/second
./dhrystoneRO
Dhrystone(1.1) time for 9,000,000 passes = 3
This machine benchmarks at 2,616,279 dhrystones/second
PS: An Intel i7 running ubuntu server:
Dhrystone(1.1) time for 99,000,000 passes = 1
This machine benchmarks at 50,253,807 dhrystones/second
|