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.0GNU gcc #4 11.8911.897321139  0% 0% 0% 100%
1.0C++ GNU g++ #7 11.9011.891,1561114  0% 0% 0% 100%
1.3Ada 2005 GNAT #3 15.6915.702,5281702  0% 0% 0% 100%
1.3Fortran Intel #2 15.7115.701,096513  0% 0% 0% 100%
1.3Lisp SBCL 15.7315.7210,540625  0% 0% 0% 100%
1.3Haskell GHC #3 15.9515.951,512737  0% 0% 0% 100%
1.3Haskell GHC 16.0216.022,244869  0% 0% 0% 100%
1.4Fortran Intel 16.1216.201,280568  0% 1% 0% 100%
1.4Scala 16.5716.6216,484500  0% 0% 0% 100%
1.4Java 6 -server 16.6116.6215,868514  0% 0% 0% 100%
1.4Java 6 steady state #2 17.1617.1623,9521027  0% 0% 0% 100%
1.5Java 6 -server #2 17.3317.3415,140950  0% 0% 0% 100%
1.5Scala #2 17.5017.5021,016720  0% 0% 0% 100%
1.6Ada 2005 GNAT #2 18.7418.743,0161464  0% 0% 0% 100%
1.6Pascal Free Pascal 18.7918.79192423  0% 0% 0% 100%
1.7OCaml #2 20.2320.241,788377  0% 0% 0% 100%
1.7Clean 20.2520.251,444572  0% 1% 0% 100%
1.7OCaml #3 20.4020.393,332907  0% 0% 0% 100%
1.8Ada 2005 GNAT 21.7621.761,612710  0% 0% 0% 100%
1.9ATS #2 22.1422.141,4002339  0% 0% 0% 100%
1.9ATS 22.2622.266601179  0% 0% 0% 100%
1.9Lisp SBCL #3 22.2922.299,464883  0% 0% 1% 100%
1.9C# Mono #2 22.3022.305,1441063  0% 0% 0% 100%
1.9C# Mono 22.3122.315,004459  0% 0% 0% 100%
1.9F# Mono 22.3722.377,388514  0% 0% 0% 100%
2.2Go 6g 8g 26.3226.321,544420  0% 0% 0% 100%
2.2Go 6g 8g #2 26.3326.331,488545  0% 2% 1% 100%
2.8C++ GNU g++ 32.8132.821,276452  0% 0% 0% 100%
2.8GNU gcc 33.7733.77684382  0% 0% 0% 100%
3.9Erlang HiPE #2 46.7846.7711,716747  0% 0% 100% 0%
4.9JavaScript TraceMonkey 58.4958.494,424311  0% 0% 0% 100%
5.3Erlang HiPE 62.4962.4911,272507  0% 1% 1% 100%
7.7JavaScript V8 90.9890.9824,036311  0% 0% 0% 100%
7.7Haskell GHC #2 91.5591.5511,224396  0% 0% 0% 100%
7.8Java 6 -Xint #2 93.0093.0212,944950  3% 0% 0% 100%
12Java 6 -Xint 148.17148.1813,528514  0% 0% 0% 100%
16Scheme PLT #2 189.88189.8712,644419  0% 0% 0% 100%
16Lua 190.54190.541,492329  0% 0% 0% 100%
19Lua #3 220.06220.041,480328  0% 0% 0% 100%
65PHP #2 12 min12 min7,860397  0% 0% 0% 100%
69PHP #3 13 min13 min26,3041193  0% 0% 0% 100%
71Ruby JRuby 14 min14 min171,844292  0% 0% 0% 100%
71Python CPython 14 min14 min4,504378  0% 0% 0% 100%
75Python CPython #5 14 min14 min28,000428  0% 0% 0% 100%
92Perl #3 18 min18 min11,060846  0% 0% 0% 100%
98Perl #2 19 min19 min4,244343  0% 0% 0% 100%
128Perl 25 min25 min3,748355  0% 0% 0% 100%
192Ruby MRI 38 min38 min4,296292  0% 0% 0% 100%
Smalltalk VisualWorks #2 Failed438
interesting alternative programs
0.4GNU gcc #2 4.534.53237,056669
1.0Python CPython #2 11.3011.31481,352233
56Python CPython #4 660.41660.394,604281

 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