5

Is there a way to benchmark the performance of my Raspberry Pi?

I'd be looking at Upload/Download speeds, reads, writes, and general processing stuff.

  • 1
    You will find benchmark tools for specific actions, such as up/download speed, but not one that will cover all bases. Perhaps specify the areas that you want to test? – Jivings Jul 23 '12 at 23:03
  • I'm not sure what the best benchmark would be, but I'm looking for an empirical way to measure video performance and CPU performance, comparing my results to what I was able to previously achieve in a different distro or in a different configuration. – Zoot Jul 24 '12 at 19:49
  • @Zoot: Have any luck with this? - am also looking for something - mainly to benchmark CPU for the moment. – Jon Egerton Aug 1 '12 at 8:43
  • iperf is a great program! for testing the network. Others elinux.org/RPi_Performance. – ArchHaskeller Aug 4 '12 at 18:35
  • @Haskeller Please make your comment as an answer so I can treat it like one. Thanks! – Zoot Aug 7 '12 at 12:45
4

Iperf is an excellent program for measuring maximum bandwidth between networks.

#Sever listening on TCP port 1337
ip route
iperf -s -p 1337
#Sever listening on UDP port 1337
iperf -s -u -p 1337
#Client connecting to server IP(TCP)
iperf -c <IP_ADDR> -p 1337 -t <TIME> -i <PING_TIME> -f m -d
#Client connecting to server IP(UDP)
iperf -c <IP_ADDR> -u -p 1337 -t <TIME> -i <PING_TIME> -f m -d

From the elinux wiki

USB Bus(write to an external storage device)

dd if=/mnt/drivehere/test of=/dev/null bs=32M count=10 iflag=direct

SD card read and write

# write
dd if=/dev/zero of=~/test.tmp bs=500K count=1024 
# read
dd if=~/test.tmp of=/dev/null bs=500K count=1024 

CPU linpack

wget http://www.netlib.org/benchmark/linpackc.new
mv linpackc.new linpack.c
cc -O3 -o linpack linpack.c -lm

GPU benchmarking is quite hard since OpenCl isn't supported. A rough benchmark would be ioquake3 and glxgears for comparing the frame rate.You could also use OpenGl:ES as ppumkin noted.

Munin can also help measure performance by relating it to the previous configurations you had. How to setup munin

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.