How big is the measured performance difference?

Each chart bar shows how many times more Time or how many times more Memory one unidentified ↓ spectral-norm program used, compared to the program that used least Time or the program that used least Memory.

 spectral-norm benchmark N=5,500

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

Compare how much Memory the spectral-norm programs used - sort Memory KB. Compare how much Code the programs used - sort Code B

Column × shows how many times more each program used compared to the program that used least.

    sort sort sort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
1.0C++ GNU g++ #7 11.9411.941,0041114  0% 0% 1% 100%
1.0GNU gcc #4 11.9511.946641139  0% 0% 0% 100%
1.3Haskell GHC #3 15.6915.691,220737  0% 0% 0% 100%
1.3Lua LuaJIT 15.6915.691,076329  0% 0% 0% 100%
1.3Lua LuaJIT #3 15.6915.691,072328  0% 0% 0% 100%
1.3Lisp SBCL #3 15.7115.715,620883  0% 0% 0% 100%
1.3Java 6 steady state #2 15.7315.7317,6761027  0% 0% 0% 100%
1.3Lisp SBCL 15.7415.746,844625  0% 0% 0% 100%
1.3C# Mono #2 15.7515.754,5241063  0% 0% 0% 100%
1.3Haskell GHC 15.7815.781,784869  0% 0% 0% 100%
1.3Fortran Intel #2 15.9015.90592513  0% 0% 0% 100%
1.3Java 6 -server #2 15.9115.9312,564950  0% 0% 0% 100%
1.3Fortran Intel 16.0016.001,144568  0% 0% 0% 100%
1.4Scala #2 17.1217.1316,544720  0% 0% 0% 100%
1.5Scala 17.3817.3813,804500  0% 0% 0% 100%
1.5Java 6 -server 17.3917.4213,284514  0% 0% 0% 100%
1.5C# Mono 17.6917.704,336459  0% 0% 0% 100%
1.5F# Mono 17.8217.826,520514  0% 0% 0% 100%
1.6Clean 18.7318.731,440572  0% 1% 0% 100%
1.6Ada 2005 GNAT #2 18.7418.752,7401464  0% 0% 0% 100%
1.6Pascal Free Pascal 18.7818.78184423  0% 0% 0% 100%
1.6Ada 2005 GNAT #3 18.8318.842,2601702  0% 0% 0% 100%
1.6OCaml #2 18.8418.841,632377  0% 0% 0% 100%
1.6OCaml #3 18.8718.873,132907  0% 0% 0% 100%
1.7ATS 20.6620.665881179  0% 0% 0% 100%
1.7ATS #2 20.6620.661,2802339  0% 1% 0% 100%
1.8Ada 2005 GNAT 21.7621.761,336710  0% 0% 0% 100%
2.7GNU gcc 32.7732.77616382  0% 0% 0% 100%
2.7C++ GNU g++ 32.7932.791,144452  0% 0% 0% 100%
3.3Go 6g 8g 39.3439.341,440420  0% 0% 0% 100%
3.7Go 6g 8g #2 44.7644.761,328545  0% 0% 0% 100%
3.8Erlang HiPE #2 44.9144.908,620747  0% 0% 0% 100%
4.9JavaScript TraceMonkey 58.5658.564,068311  0% 0% 0% 100%
5.2Erlang HiPE 61.6461.647,976507  100% 0% 0% 0%
6.8JavaScript V8 81.1581.1413,880311  0% 0% 0% 100%
7.5Haskell GHC #2 89.3589.357,380396  0% 0% 0% 100%
9.4Smalltalk VisualWorks #2 112.19112.1814,524438  0% 0% 0% 100%
9.9Java 6 -Xint #2 117.86117.9010,836950  0% 0% 0% 100%
14Java 6 -Xint 168.81168.8411,488514  0% 0% 0% 100%
22Lua 262.93262.911,136329  0% 0% 0% 100%
23Lua #3 275.57275.551,132328  0% 0% 0% 100%
24Scheme PLT #2 289.45289.439,228419  0% 0% 0% 100%
37Mozart/Oz 7 min7 min4,120411  0% 0% 0% 100%
72Ruby JRuby 14 min14 min82,880292  4% 5% 6% 100%
77Ruby 1.9 15 min15 min3,940292  0% 0% 0% 100%
90PHP #2 17 min17 min5,300397  0% 0% 0% 100%
92PHP #3 18 min18 min16,6961193  0% 0% 0% 100%
98Python CPython 19 min19 min3,380378  0% 0% 0% 100%
99Perl #3 19 min19 min7,792846  0% 0% 0% 100%
100Python CPython #5 19 min19 min20,740428  0% 0% 0% 100%
106Python 3 21 min21 min4,456366  0% 0% 0% 100%
106Perl #2 21 min21 min3,152343  0% 0% 0% 100%
113Perl 22 min22 min2,812355  0% 0% 0% 100%
118Python 3 #5 23 min23 min25,416437  0% 0% 0% 100%
186Ruby MRI 37 min37 min2,676292  0% 0% 0% 100%
Lisaac Make Error518
interesting alternative programs
0.4GNU gcc #2 4.214.22236,976669
1.1Python CPython #2 12.6812.68479,448233
76Python CPython #4 911.11911.073,452281

 spectral-norm benchmark : Eigenvalue using the power method

diff program output N = 100 with this output file to check your program is correct before contributing.

Each program should calculate the spectral norm of an infinite matrix A, with entries a11=1, a12=1/2, a21=1/3, a13=1/4, a22=1/5, a31=1/6, etc

Each program must implement 4 separate functions / procedures / methods like the C# program.

For more information see challenge #3 in Eric W. Weisstein, "Hundred-Dollar, Hundred-Digit Challenge Problems" and "Spectral Norm".

From MathWorld--A Wolfram Web Resource.
http://mathworld.wolfram.com/Hundred-DollarHundred-DigitChallengeProblems.html
http://mathworld.wolfram.com/SpectralNorm.html

Thanks to Sebastien Loisel for this benchmark.

Revised BSD license