Difference between pages "Benchmarking" and "Programming"

(Difference between pages)
 
m (remove typo)
 
Line 1: Line 1:
== Power usage ==
+
Programming is a skill that is helpful to contribute back to linux, gnu, and other software sources. This page is dedicated to improving our programming & scripting skills.  The author of this page suggests bash, c, and python for funtoo users.  This page is a bit of a mess for the moment, it will be broken up into sub pages.  cobol is so gangster, it's stupid....
<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 ==
+
==Programming Languages==
=== Compiler performance ===
+
===Assembly Language===
<console>
+
{{#widget:YouTube|playlist=PL4C2714CB525C3CD7}}
###i## time emerge -1 coreutils
+
real    2m17.574s
+
user    1m46.572s
+
sys    0m53.450s
+
</console>
+
  
== RAM ==
+
===Bash===
=== ramspeed ===
+
{{#widget:YouTube|playlist=PLDOiVunkOLsEJF2toupqFubpWtVasDqOg}}
<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>
+
  
== Hard drive ==
+
===C===
=== hdparm ===
+
{{#widget:YouTube|playlist=PLkB3phqR3X40reMCBYSoNUPbDvM4kybMs}}
<console>
+
###i## 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
+
</console>
+
  
=== dd ===
+
===C++===
<console>
+
{{#widget:YouTube|playlist=PLAEwfbJn6kqFnzJjYi0vNn69VNSsL3guo}}
$##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>
+
  
== GPU ==
+
==== Qt Framework ====
=== Warsow ===
+
{{#widget:YouTube|playlist=PL2D1942A4688E9D63}}
==== 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>
+
  
=== Nexuiz ===
+
===Cobol===
<console>
+
{{#widget:YouTube|playlist=PLw2d78nGwdI-FwgYrZOIHT4TIlgE6G--a}}
###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>
+
  
=== Xonotic ===
+
===Fortran===
<console>
+
{{#widget:YouTube|playlist=PLj1FmKKVt84VRooS72BVR1n3M1awzRbj2}}
###i## emerge -av xonotic
+
$##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 ===
+
===java===
Note: glxgears is a very basic OpenGL support test, it is not a real benchmark tool!
+
{{#widget:YouTube|playlist=PLD22A26A9CD8A1A51}}
<console>
+
###i## emerge -av mesa-progs
+
$##bl## vblank_mode=0 glxgears
+
1583 frames in 5.0 seconds = 316.485 FPS
+
</console>
+
  
[[Category:HOWTO]]
+
===lua===
 +
{{#widget:YouTube|playlist=PL5D2E7A4DD535E276}}
 +
 
 +
===ObjectiveC===
 +
{{#widget:YouTube|playlist=PL54515103C712A53D}}
 +
 
 +
===Perl===
 +
{{#widget:YouTube|playlist=PLE7511681ABEA8635}}
 +
 
 +
===Python===
 +
{{#widget:YouTube|playlist=PLEA1FEF17E1E5C0DA}}
 +
 
 +
===Ruby===
 +
{{#widget:YouTube|playlist=PL1512BD72E7C9FFCA}}
 +
 
 +
===Tex===
 +
{{#widget:YouTube|playlist=PLlLAyGJ7_7MFcSTHMVMErZ1GW0pGOfWtd}}
 +
 
 +
== External Resources ==
 +
https://en.wikipedia.org/wiki/List_of_programming_languages

Latest revision as of 19:52, October 20, 2014

Programming is a skill that is helpful to contribute back to linux, gnu, and other software sources. This page is dedicated to improving our programming & scripting skills. The author of this page suggests bash, c, and python for funtoo users. This page is a bit of a mess for the moment, it will be broken up into sub pages. cobol is so gangster, it's stupid....

Programming Languages

Assembly Language

Bash

C

C++

Qt Framework

Cobol

Fortran

java

lua

ObjectiveC

Perl

Python

Ruby

Tex

External Resources

https://en.wikipedia.org/wiki/List_of_programming_languages