vs

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

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

(Memory use is only compared for tasks that require memory to be allocated.)


These are not the only compilers and interpreters. These are not the only programs that could be written. These are not the only tasks that could be solved. These are just 10 tiny examples.

 2 : Are the Haskell GHC programs faster? Approximately.

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

(Memory use is only compared for tasks that require memory to be allocated.)

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 fasta± 1/3
 pidigits± 1/3
 reverse-complement±1/4±
 fannkuch-redux± ±
 spectral-norm± ±
 n-body± ±
 binary-trees±1/3±
 regex-dna±1/2±
 mandelbrot ±
 k-nucleotide1/4±
 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.

 3 : Are the Haskell GHC programs faster? Measurements.

These are not the only tasks that could be solved. These are just 10 tiny examples. These are not the only compilers and interpreters. These are not the only programs that could be written.

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fasta 
Haskell GHC3.353.352,504979  1% 1% 0% 100%
Java4.934.9327,6682457  0% 1% 0% 100%
 pidigits 
Haskell GHC2.962.965,676341  0% 1% 0% 100%
Java4.144.1421,844938  1% 0% 1% 100%
 reverse-complement 
Haskell GHC1.221.22125,892999  0% 2% 2% 100%
Java1.691.69519,612745  0% 1% 0% 100%
 fannkuch-redux 
Haskell GHC62.2462.261,9881153  0% 0% 1% 100%
Java67.4867.5021,4481282  1% 1% 0% 100%
 spectral-norm 
Haskell GHC15.7015.701,184984  0% 1% 0% 100%
Java16.3116.3120,440950  1% 1% 0% 100%
 n-body 
Haskell GHC24.2024.222,2401874  1% 0% 1% 100%
Java24.5024.5219,6361424  1% 0% 1% 100%
 binary-trees 
Haskell GHC18.2318.25173,344612  0% 1% 1% 100%
Java16.4116.44521,176584  0% 1% 1% 100%
 regex-dna 
Haskell GHC28.1828.19241,3721518  0% 0% 1% 100%
Java22.1222.13564,9521377  2% 1% 1% 100%
 mandelbrot 
Haskell GHC47.7947.8134,980782  0% 1% 0% 100%
Java26.9626.9859,240796  1% 0% 0% 100%
 k-nucleotide 
Haskell GHC64.2364.30324,4241965  0% 1% 0% 100%
Java31.1831.211,189,8121844  1% 1% 0% 100%
 fasta-redux 
No program
Java0.180.19?1443  0% 0% 0% 100%

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

Remember - those are just the fastest Haskell GHC and Java 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.

 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Haskell GHC and Java 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.8.2

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

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

Revised BSD license

  Home   Conclusions   License   Play