Difference between revisions of "Benchmarking"

 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
== Power usage ==
 +
<code>sys-power/powertop</code> can guess the computer's current power usage in watts. You have to be on battery power for watt usage to show up.
 +
<console>
 +
###i## powertop
 +
Power usage (ACPI estimate): 15.7W (0.5 hours)
 +
</console>
 +
 
== CPU ==
 
== CPU ==
 
=== Compiler performance ===
 
=== Compiler performance ===
<console># time emerge -1 coreutils</console>
+
<console>
<pre>real    2m17.574s
+
###i## time emerge -1 coreutils
 +
real    2m17.574s
 
user    1m46.572s
 
user    1m46.572s
sys    0m53.450s</pre>
+
sys    0m53.450s
 +
</console>
  
 
== RAM ==
 
== RAM ==
<console># emerge ramspeed
+
=== ramspeed ===
$ ramspeed -b2 -m4 && ramspeed -b1 -m4</console>
+
<console>
<pre>
+
###i## emerge -av ramspeed
 +
$##bl## ramspeed -b2 -m4 && ramspeed -b1 -m4
 
INTEGER & READING      2048 Kb block: 5027.82 MB/s
 
INTEGER & READING      2048 Kb block: 5027.82 MB/s
 
INTEGER & READING      4096 Kb block: 4999.53 MB/s
 
INTEGER & READING      4096 Kb block: 4999.53 MB/s
Line 15: Line 25:
 
INTEGER & WRITING      2048 Kb block: 2003.86 MB/s
 
INTEGER & WRITING      2048 Kb block: 2003.86 MB/s
 
INTEGER & WRITING      4096 Kb block: 1951.05 MB/s
 
INTEGER & WRITING      4096 Kb block: 1951.05 MB/s
</pre>
+
</console>
  
 
== Hard drive ==
 
== Hard drive ==
 
=== hdparm ===
 
=== hdparm ===
<console># hdparm -tT /dev/sda</console>
+
<console>
<pre>/dev/sda:
+
###i## hdparm -tT /dev/sda
 +
/dev/sda:
 
  Timing cached reads:  2318 MB in  2.00 seconds = 1159.52 MB/sec
 
  Timing cached reads:  2318 MB in  2.00 seconds = 1159.52 MB/sec
  Timing buffered disk reads: 648 MB in  3.00 seconds = 215.92 MB/sec</pre>
+
  Timing buffered disk reads: 648 MB in  3.00 seconds = 215.92 MB/sec
 +
</console>
  
 
=== dd ===
 
=== dd ===
<console>$ dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync
+
<console>
# echo 3 > /proc/sys/vm/drop_caches
+
$##bl## dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync
$ dd bs=1M count=512 if=temp of=/dev/null
+
###i## echo 3 > /proc/sys/vm/drop_caches
$ rm temp</console>
+
$##bl## dd bs=1M count=512 if=temp of=/dev/null
<pre>536870912 bytes (537 MB) copied, 3.13319 s, 171 MB/s
+
536870912 bytes (537 MB) copied, 3.13319 s, 171 MB/s
 
..
 
..
536870912 bytes (537 MB) copied, 2.17444 s, 247 MB/s</pre>
+
536870912 bytes (537 MB) copied, 2.17444 s, 247 MB/s
 +
$##bl## rm temp
 +
</console>
  
 
== GPU ==
 
== GPU ==
 
=== Warsow ===
 
=== Warsow ===
 
==== Install ====
 
==== Install ====
<console># emerge warsow
+
<console>
$ mkdir -p ~/.warsow-1.0/basewsw/demos
+
###i## emerge -av warsow
$ cd ~/.warsow-1.0/basewsw/demos
+
$##bl## mkdir -p ~/.warsow-1.0/basewsw/demos
$ wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip
+
$##bl## cd ~/.warsow-1.0/basewsw/demos
$ unzip pts-warsow-10-1.zip</console>
+
$##bl## wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip
 +
$##bl## unzip pts-warsow-10-1.zip
 +
</console>
 
==== Benchmark ====
 
==== Benchmark ====
<console>$ warsow +exec profiles/high+.cfg +timedemo 1 +cg_showFPS 1 +cl_maxfps 999 +demo pts-demo10 +next "quit" +r_mode -1</console>
+
<console>
<pre>899 frames, 76.4 seconds: 11.8 fps</pre>
+
$##bl## warsow +exec profiles/high+.cfg +timedemo 1 +cg_showFPS 1 +cl_maxfps 999 +demo pts-demo10 +next "quit" +r_mode -1
 +
899 frames, 76.4 seconds: 11.8 fps
 +
</console>
  
 
=== Nexuiz ===
 
=== Nexuiz ===
<console># emerge nexuiz
+
<console>
$ nexuiz-glx -benchmark demos/demo1 -nosound 2>&1 {{!}} egrep -e '[0-9]+ frames'</console>
+
###i## emerge -av nexuiz
<pre>1910 frames 42.0330749 seconds 45.4404063 fps, one-second fps min/avg/max: 35 46 63 (90 seconds)</pre>
+
$##bl## nexuiz-glx -benchmark demos/demo1 -nosound 2>&1 {{!}} egrep -e '[0-9]+ frames'
 +
1910 frames 42.0330749 seconds 45.4404063 fps, one-second fps min/avg/max: 35 46 63 (90 seconds)
 +
</console>
  
 
=== Xonotic ===
 
=== Xonotic ===
<console># emerge xonotic
+
<console>
$ xonotic-glx -benchmark demos/the-big-keybench 2>&1 {{!}} egrep -e '[0-9]+ frames'</console>
+
###i## emerge -av xonotic
<pre>12568 frames 556.0637400 seconds 22.6017255 fps, one-second fps min/avg/max: 19 23 27 (207 seconds)</pre>
+
$##bl## xonotic-glx -benchmark demos/the-big-keybench 2>&1 {{!}} egrep -e '[0-9]+ frames'
 +
12568 frames 556.0637400 seconds 22.6017255 fps, one-second fps min/avg/max: 19 23 27 (207 seconds)
 +
</console>
 +
 
 +
=== Glxgears ===
 +
Note: glxgears is a very basic OpenGL support test, it is not a real benchmark tool!
 +
<console>
 +
###i## emerge -av mesa-progs
 +
$##bl## vblank_mode=0 glxgears
 +
1583 frames in 5.0 seconds = 316.485 FPS
 +
</console>
 +
 
 +
[[Category:HOWTO]]

Latest revision as of 15:29, October 20, 2014

Power usage

sys-power/powertop can guess the computer's current power usage in watts. You have to be on battery power for watt usage to show up.

# powertop
Power usage (ACPI estimate): 15.7W (0.5 hours)

CPU

Compiler performance

# time emerge -1 coreutils
real    2m17.574s
user    1m46.572s
sys     0m53.450s

RAM

ramspeed

# emerge -av ramspeed
$ ramspeed -b2 -m4 && ramspeed -b1 -m4
INTEGER & READING      2048 Kb block: 5027.82 MB/s
INTEGER & READING      4096 Kb block: 4999.53 MB/s
...
INTEGER & WRITING      2048 Kb block: 2003.86 MB/s
INTEGER & WRITING      4096 Kb block: 1951.05 MB/s

Hard drive

hdparm

# hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   2318 MB in  2.00 seconds = 1159.52 MB/sec
 Timing buffered disk reads: 648 MB in  3.00 seconds = 215.92 MB/sec

dd

$ dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync
# echo 3 > /proc/sys/vm/drop_caches
$ dd bs=1M count=512 if=temp of=/dev/null
536870912 bytes (537 MB) copied, 3.13319 s, 171 MB/s
..
536870912 bytes (537 MB) copied, 2.17444 s, 247 MB/s
$ rm temp

GPU

Warsow

Install

# emerge -av warsow
$ mkdir -p ~/.warsow-1.0/basewsw/demos
$ cd ~/.warsow-1.0/basewsw/demos
$ wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip
$ unzip pts-warsow-10-1.zip

Benchmark

$ warsow +exec profiles/high+.cfg +timedemo 1 +cg_showFPS 1 +cl_maxfps 999 +demo pts-demo10 +next "quit" +r_mode -1
899 frames, 76.4 seconds: 11.8 fps

Nexuiz

# emerge -av nexuiz
$ nexuiz-glx -benchmark demos/demo1 -nosound 2>&1 {{!}} egrep -e '[0-9]+ frames'
1910 frames 42.0330749 seconds 45.4404063 fps, one-second fps min/avg/max: 35 46 63 (90 seconds)

Xonotic

# emerge -av xonotic
$ xonotic-glx -benchmark demos/the-big-keybench 2>&1 {{!}} egrep -e '[0-9]+ frames'
12568 frames 556.0637400 seconds 22.6017255 fps, one-second fps min/avg/max: 19 23 27 (207 seconds)

Glxgears

Note: glxgears is a very basic OpenGL support test, it is not a real benchmark tool!

# emerge -av mesa-progs
$ vblank_mode=0 glxgears
1583 frames in 5.0 seconds = 316.485 FPS