/mobile Handheld Friendly website

÷

 Step 1 : Are the Haskell GHC programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Haskell GHC program used compared to the fastest Java 7 -server program.


Look at speed another way - look at a box plot of Time-used data.

 Step 2 : Are the Haskell GHC programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Haskell GHC program used compared to the fastest Java 7 -server program.

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 mandelbrot±?±
 pidigits±1/111/5
 spectral-norm±1/11±
 regex-dna±1/4
 fannkuch-redux±1/13±
 reverse-complement±1/21/2
 n-body1/7±
 binary-trees±1/2
 fasta1/8±
 k-nucleotide±±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±

± read the measurements and then read the program source code.

 Step 3 : Are the Haskell GHC programs faster? Measurements.

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

For each named benchmark, measurements of the fastest Haskell GHC program are shown for comparison against measurements of the fastest Java 7 -server program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 mandelbrot 
Haskell GHC0.300.08?782  100% 100% 88% 100%
Java 7 -server0.270.12?802  55% 45% 92% 50%
 pidigits 
Haskell GHC5.593.685,468341  4% 98% 41% 10%
Java 7 -server9.333.8661,4881808  55% 54% 58% 56%
 spectral-norm 
Haskell GHC21.795.621,520984  97% 96% 99% 96%
Java 7 -server17.684.5317,264950  97% 97% 98% 98%
 regex-dna 
Haskell GHC40.9511.32215,9921518  86% 89% 100% 88%
Java 7 -server25.559.01785,700929  66% 76% 69% 75%
 fannkuch-redux 
Haskell GHC70.9819.051,2961153  94% 100% 92% 88%
Java 7 -server53.2713.5017,0561282  98% 99% 98% 100%
 reverse-complement 
Haskell GHC2.201.80126,056999  98% 8% 6% 13%
Java 7 -server2.571.27313,0801661  45% 41% 33% 91%
 n-body 
Haskell GHC39.4436.582,3121695  34% 28% 21% 26%
Java 7 -server22.5122.4916,7841424  0% 0% 0% 100%
 binary-trees 
Haskell GHC58.3218.79786,900612  71% 77% 93% 71%
Java 7 -server18.018.55534,9241007  68% 92% 17% 36%
 fasta 
Haskell GHC13.5612.872,3081421  18% 69% 17% 2%
Java 7 -server5.255.1917,6601507  0% 1% 2% 100%
 k-nucleotide 
Haskell GHC129.5650.68307,8722749  69% 54% 82% 57%
Java 7 -server29.918.17458,4762431  89% 91% 95% 93%
 fasta-redux 
No program
Java 7 -server0.130.11?1443  11% 9% 18% 91%

 Step 4 : Are there other Haskell GHC programs for these benchmarks?

Remember - those are just the fastest Haskell GHC and Java 7 -server programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Haskell GHC.

Maybe one of those other Haskell GHC programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Haskell GHC and Java 7 -server programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Haskell GHC : lazy pure functional programming 

The Glorious Glasgow Haskell Compilation System, version 7.4.1

Home Page: http://www.haskell.org/

Download: http://www.haskell.org/ghc/

Revised BSD license

  Home   Conclusions   License   Help