Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Benchmarking"
Jump to navigation
Jump to search
m (format console output the right way) |
m (Removed some extra spaces at the bottom of the new console templates.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Power usage == | == Power usage == | ||
sys-power/powertop can | {{c|sys-power/powertop}} can estimate the computer's current power usage in watts. You have to be on battery power for watt usage to show up. | ||
{{console|body= | |||
###i## powertop | ###i## powertop | ||
Power usage (ACPI estimate): 15.7W (0.5 hours) | Power usage (ACPI estimate): 15.7W (0.5 hours) | ||
}} | |||
== CPU == | == CPU == | ||
=== Compiler performance === | === Compiler performance === | ||
{{console|body= | |||
###i## time emerge -1 coreutils | ###i## time emerge -1 coreutils | ||
real 2m17.574s | real 2m17.574s | ||
user 1m46.572s | user 1m46.572s | ||
sys 0m53.450s | sys 0m53.450s | ||
}} | |||
== RAM == | == RAM == | ||
=== ramspeed === | === ramspeed === | ||
{{console|body= | |||
###i## emerge -av ramspeed | ###i## emerge -av ramspeed | ||
$##bl## ramspeed -b2 -m4 && ramspeed -b1 -m4 | $##bl## ramspeed -b2 -m4 && ramspeed -b1 -m4 | ||
Line 25: | Line 23: | ||
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 | ||
}} | |||
== Hard drive == | == Hard drive == | ||
=== hdparm === | === hdparm === | ||
{{console|body= | |||
###i## hdparm -tT /dev/sda | ###i## hdparm -tT /dev/sda | ||
/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 | Timing buffered disk reads: 648 MB in 3.00 seconds = 215.92 MB/sec | ||
}} | |||
=== dd === | === dd === | ||
{{console|body= | |||
$##bl## dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync | $##bl## dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync | ||
###i## echo 3 > /proc/sys/vm/drop_caches | ###i## echo 3 > /proc/sys/vm/drop_caches | ||
Line 45: | Line 41: | ||
536870912 bytes (537 MB) copied, 2.17444 s, 247 MB/s | 536870912 bytes (537 MB) copied, 2.17444 s, 247 MB/s | ||
$##bl## rm temp | $##bl## rm temp | ||
}} | |||
== GPU == | == GPU == | ||
=== Warsow === | === Warsow === | ||
==== Install ==== | ==== Install ==== | ||
{{console|body= | |||
###i## emerge -av warsow | ###i## emerge -av warsow | ||
$##bl## mkdir -p ~/.warsow-1.0/basewsw/demos | $##bl## mkdir -p ~/.warsow-1.0/basewsw/demos | ||
Line 56: | Line 51: | ||
$##bl## wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip | $##bl## wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip | ||
$##bl## unzip pts-warsow-10-1.zip | $##bl## unzip pts-warsow-10-1.zip | ||
}} | |||
==== Benchmark ==== | ==== Benchmark ==== | ||
{{console|body= | |||
$##bl## warsow +exec profiles/high+.cfg +timedemo 1 +cg_showFPS 1 +cl_maxfps 999 +demo pts-demo10 +next "quit" +r_mode -1 | $##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 | 899 frames, 76.4 seconds: 11.8 fps | ||
}} | |||
=== Nexuiz === | === Nexuiz === | ||
{{console|body= | |||
###i## emerge -av nexuiz | ###i## emerge -av nexuiz | ||
$##bl## nexuiz-glx -benchmark demos/demo1 -nosound 2>&1 {{!}} egrep -e '[0-9]+ frames' | $##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) | 1910 frames 42.0330749 seconds 45.4404063 fps, one-second fps min/avg/max: 35 46 63 (90 seconds) | ||
}} | |||
=== Xonotic === | === Xonotic === | ||
{{console|body= | |||
###i## emerge -av xonotic | ###i## emerge -av xonotic | ||
$##bl## xonotic-glx -benchmark demos/the-big-keybench 2>&1 {{!}} egrep -e '[0-9]+ frames' | $##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) | 12568 frames 556.0637400 seconds 22.6017255 fps, one-second fps min/avg/max: 19 23 27 (207 seconds) | ||
}} | |||
=== Glxgears === | === Glxgears === | ||
Note: glxgears is a very basic OpenGL support test, it is not a real benchmark tool! | Note: glxgears is a very basic OpenGL support test, it is not a real benchmark tool! | ||
{{console|body= | |||
###i## emerge -av mesa-progs | ###i## emerge -av mesa-progs | ||
$##bl## vblank_mode=0 glxgears | $##bl## vblank_mode=0 glxgears | ||
1583 frames in 5.0 seconds = 316.485 FPS | 1583 frames in 5.0 seconds = 316.485 FPS | ||
}} | |||
[[Category:HOWTO]] | [[Category:HOWTO]] |
Latest revision as of 12:26, June 24, 2015
Power usage
sys-power/powertop
can estimate the computer's current power usage in watts. You have to be on battery power for watt usage to show up.
root # powertop Power usage (ACPI estimate): 15.7W (0.5 hours)
CPU
Compiler performance
root # time emerge -1 coreutils real 2m17.574s user 1m46.572s sys 0m53.450s
RAM
ramspeed
root # emerge -av ramspeed user $ 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
root # 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
user $ dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync root # echo 3 > /proc/sys/vm/drop_caches user $ 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 user $ rm temp
GPU
Warsow
Install
root # emerge -av warsow user $ mkdir -p ~/.warsow-1.0/basewsw/demos user $ cd ~/.warsow-1.0/basewsw/demos user $ wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip user $ unzip pts-warsow-10-1.zip
Benchmark
user $ 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
root # emerge -av nexuiz user $ 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
root # emerge -av xonotic user $ 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!
root # emerge -av mesa-progs user $ vblank_mode=0 glxgears 1583 frames in 5.0 seconds = 316.485 FPS