6

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.

Zoot
  • 2,926
  • 3
  • 24
  • 36
  • 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 01 '12 at 08:43
  • iperf is a great program! for testing the network. Others http://elinux.org/RPi_Performance. – ArchHaskeller Aug 04 '12 at 18:35
  • @Haskeller Please make your comment as an answer so I can treat it like one. Thanks! – Zoot Aug 07 '12 at 12:45
  • [This answer](http://raspberrypi.stackexchange.com/a/1364/894) is directly related and linked to other answers – Piotr Kula Aug 07 '12 at 21:30

1 Answers1

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

ArchHaskeller
  • 1,415
  • 12
  • 35
  • [OpenGl:ES Benchmarking](http://www.youtube.com/watch?v=LGLNFIWZHbQ&feature=watch_response) - I wish I could embed video answers. don't you? – Piotr Kula Aug 07 '12 at 21:34