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.983.001,0321114  100% 100% 100% 100%
1.0GNU gcc #4 12.003.006881139  100% 100% 100% 100%
1.3Java 6 steady state #2 15.713.9618,1121027  99% 99% 99% 99%
1.3C# Mono #2 15.763.994,7121063  98% 99% 99% 99%
1.3Fortran Intel 15.824.001,140568  99% 99% 99% 99%
1.3Haskell GHC 15.674.041,752869  96% 98% 97% 98%
1.4Java 6 -server #2 15.954.1112,552950  97% 97% 98% 97%
1.5Scala #2 17.234.4716,760720  96% 98% 95% 96%
1.5Lisp SBCL #3 15.614.535,728883  86% 86% 86% 85%
1.6Ada 2005 GNAT #2 18.744.742,7441464  99% 99% 99% 99%
1.6Ada 2005 GNAT #3 18.914.812,2601702  98% 98% 98% 98%
1.8ATS #2 20.575.541,2682339  93% 93% 92% 92%
1.9OCaml #3 18.585.803,112907  77% 83% 79% 81%
3.8Go 6g 8g #2 44.7811.471,296545  97% 97% 98% 98%
3.9Erlang HiPE #2 46.0511.8210,552747  97% 97% 98% 97%
5.2Lua LuaJIT #3 15.6915.701,072328  0% 100% 0% 0%
5.2Haskell GHC #3 15.7015.701,472737  0% 0% 100% 0%
5.2Lua LuaJIT 15.7115.711,072329  100% 0% 0% 0%
5.2Lisp SBCL 15.7515.746,844625  0% 0% 100% 0%
5.3Fortran Intel #2 15.9015.90588513  0% 0% 0% 100%
5.7Scala 17.4517.1513,880500  0% 0% 100% 2%
5.7Java 6 -server 17.4517.1513,324514  0% 100% 0% 2%
5.9C# Mono 17.7217.724,376459  0% 0% 100% 0%
5.9F# Mono 17.8317.826,524514  0% 0% 0% 100%
6.2Clean 18.7318.731,440572  0% 0% 0% 100%
6.3Pascal Free Pascal 18.7918.79184423  0% 100% 0% 0%
6.3OCaml #2 18.8418.841,628377  100% 0% 0% 0%
6.9ATS 20.6620.665841179  100% 0% 0% 0%
7.3Ada 2005 GNAT 21.7721.761,336710  0% 0% 0% 100%
9.8Java 6 -Xint #2 117.3029.5410,840950  99% 99% 99% 99%
11GNU gcc 32.7832.78616382  100% 0% 0% 0%
11C++ GNU g++ 32.7932.791,144452  0% 0% 0% 100%
13Go 6g 8g 39.3839.381,444420  0% 0% 0% 100%
20JavaScript TraceMonkey 58.5858.594,072311  0% 0% 100% 0%
22Erlang HiPE 66.1166.118,804507  0% 0% 100% 0%
27JavaScript V8 81.2181.2013,880311  100% 0% 0% 0%
30Haskell GHC #2 89.7588.698,952396  1% 8% 93% 3%
37Smalltalk VisualWorks #2 111.96111.9514,524438  0% 0% 0% 100%
49Java 6 -Xint 148.51148.4911,484514  0% 0% 100% 0%
87Lua 262.23262.221,132329  0% 0% 100% 0%
88Lua #3 264.23264.211,132328  100% 0% 0% 0%
88Scheme PLT #2 264.46264.469,248419  0% 0% 0% 100%
99PHP #3 19 min296.7616,6241193  99% 98% 99% 98%
99Python CPython #5 19 min296.8820,744428  95% 96% 97% 100%
102Perl #3 20 min5 min7,792846  100% 100% 99% 100%
117Python 3 #5 23 min5 min25,384437  98% 98% 99% 99%
172Mozart/Oz 8 min8 min3,380411  100% 0% 0% 0%
299Ruby JRuby 14 min14 min95,456292  0% 18% 82% 0%
303Ruby 1.9 15 min15 min3,920292  46% 54% 0% 0%
385PHP #2 19 min19 min5,312397  100% 0% 0% 0%
389Perl #2 19 min19 min3,148343  100% 0% 0% 0%
390Python CPython 19 min19 min3,384378  99% 0% 0% 1%
440Python 3 22 min22 min4,452366  0% 100% 0% 0%
465Perl 23 min23 min2,812355  0% 0% 0% 100%
750Ruby MRI 37 min37 min2,676292  0% 0% 0% 100%
Lisaac Make Error518
interesting alternative programs
1.4GNU gcc #2 4.184.19236,972669
4.2Python CPython #2 12.7112.72479,908233
303Python CPython #4 910.43910.383,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