Difference between pages "Test" and "Benchmarking"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m (format console output the right way)
 
Line 1: Line 1:
{{#gravatar_md5:drobbins@funtoo.org}}
== Power usage ==
sys-power/powertop can guess the computer's current power usage in watts.
<console>
###i## powertop
Power usage (ACPI estimate): 15.7W (0.5 hours)
</console>


{{#Widget:NewsDisplay|user=Drobbins|gravatar_url=http://www.gravatar.com/avatar/7490f23fe709b41d3be4f79549a679f8?s=80&d=retro&r=g|title=This is a news item!| body=
== CPU ==
blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f}}
=== Compiler performance ===
{{#Widget:NewsDisplay|user=Drobbins|gravatar_url=http://www.gravatar.com/avatar/7490f23fe709b41d3be4f79549a679f8?s=80&d=retro&r=g|title=This is a news item!| body=
<console>
blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f}}
###i## time emerge -1 coreutils
real    2m17.574s
user   1m46.572s
sys    0m53.450s
</console>


== News Items ==
== RAM ==
=== ramspeed ===
<console>
###i## emerge -av ramspeed
$##bl## 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
</console>


{{#ask: [[Category:News]] [[Publication Status::Published]]
== Hard drive ==
| ?Publication Date
=== hdparm ===
| ?News Category
<console>
| ?Summary
###i## hdparm -tT /dev/sda
| ?Author
/dev/sda:
| ?Gravatar MD5
Timing cached reads:  2318 MB in  2.00 seconds = 1159.52 MB/sec
| order=descending
Timing buffered disk reads: 648 MB in  3.00 seconds = 215.92 MB/sec
| sort=Publication Date
</console>
| format=template
| template=NewsDisplay
| limit=10
}}


== Other Stuff ==
=== dd ===
<console>
$##bl## dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync
###i## echo 3 > /proc/sys/vm/drop_caches
$##bl## 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
$##bl## rm temp
</console>


{{Package|sys-apps/portage}}
== GPU ==
=== Warsow ===
==== Install ====
<console>
###i## emerge -av warsow
$##bl## mkdir -p ~/.warsow-1.0/basewsw/demos
$##bl## cd ~/.warsow-1.0/basewsw/demos
$##bl## wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip
$##bl## unzip pts-warsow-10-1.zip
</console>
==== Benchmark ====
<console>
$##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>


== Badabing ==
=== Nexuiz ===
<console>
###i## emerge -av nexuiz
$##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>


{{#ask: [[Category:People]]
=== Xonotic ===
| limit=20
<console>
| order=random
###i## emerge -av xonotic
| format=template
$##bl## xonotic-glx -benchmark demos/the-big-keybench 2>&1 {{!}} egrep -e '[0-9]+ frames'
| template=GravatarDisplay
12568 frames 556.0637400 seconds 22.6017255 fps, one-second fps min/avg/max: 19 23 27 (207 seconds)
| link=none
</console>
| searchlabel=
}}


== Table test ==
=== Glxgears ===
<div class="table-responsive"><table class="table"><tr><td>Hello</td></tr><tr><td>Hello</td></tr><tr><td>Hello</td></tr></table></div>
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>


== Testing error on Show ==
[[Category:HOWTO]]
 
* {{#show:User:JanZhou|?full name}}
* {{#show:User:Drobbins|?full name}}
 
 
{{DISPLAYTITLE:Bob Boblaw}}
[[Category:Test]]
 
Adding some text
 
== Testing External Data ==
 
 
{{#get_web_data:url=http://auth.funtoo.org:9093/static/members.xml|format=xml|use xpath|data=ircnick=/members/user/ircnick,fullname=/members/user/fullname}}
 
{{#display_external_table:template=MemberDisplay|data=ircnick,fullname}}
 
Daniel Robbins:drobbins:bdfl
 
{{file|name=foobar|lang=python|desc=foobarosity|body=
import system
}}
 
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=
# /etc/host.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
 
# The  file /etc/host.conf contains configuration information specific to
# the resolver library.  It should contain one configuration keyword  per
# line,  followed by appropriate configuration information.  The keywords
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.
 
 
 
# This keyword specifies how host lookups are to be performed. It
# should be followed by one or more lookup methods, separated by
# commas.  Valid methods are bind, hosts, and nis.
#
order hosts, bind
 
 
# Valid  values are on and off.  If set to on, the resolv+ library
# will return all valid addresses for a host that appears  in  the
# /etc/hosts  file,  instead  of  only  the first.  This is off by
# default, as it may cause a substantial performance loss at sites
# with large hosts files.
#
multi on
}}

Revision as of 20:23, October 18, 2014

Power usage

sys-power/powertop can guess the computer's current power usage in watts.

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