/mobile Handheld Friendly website

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/2
 spectral-norm± ±
 pidigits †± 1/3
 fannkuch-redux± 1/2
 reverse-complement †±1/21/2
 n-body± ±
 k-nucleotide±±±
 binary-trees±±
 mandelbrot ±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)±±±±±

† possible mismatch - one-core program compared to multi-core program.

± 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 GHC4.524.022,732979  4% 100% 3% 4%
Java5.375.2820,6681507  1% 70% 1% 31%
 spectral-norm 
Haskell GHC15.704.041,944984  97% 97% 98% 97%
Java17.804.5921,132950  97% 96% 99% 96%
 pidigits 
Haskell GHC4.102.746,244341  100% 19% 18% 17% †
Java3.173.0323,504938  19% 80% 5% 3% †
 fannkuch-redux 
Haskell GHC63.2216.144,008834  96% 100% 98% 100%
Java70.0617.7319,7201282  99% 99% 98% 99%
 reverse-complement 
Haskell GHC1.591.39126,352999  5% 4% 100% 7% †
Java2.971.47300,7121661  47% 37% 78% 43% †
 n-body 
Haskell GHC24.2123.142,7241874  100% 2% 3% 3%
Java22.9022.8719,5721424  99% 1% 1% 1%
 k-nucleotide 
Haskell GHC64.1517.55357,0721693  90% 90% 97% 89%
Java44.8512.81504,3121602  93% 86% 87% 84%
 binary-trees 
Haskell GHC65.9520.49815,356612  75% 75% 75% 99%
Java24.8914.48390,708584  34% 73% 38% 30%
 mandelbrot 
Haskell GHC45.8111.4837,028782  100% 100% 100% 100%
Java27.847.1162,344796  98% 97% 98% 100%
 regex-dna 
Haskell GHCMake Error
Java0.960.40428929  55% 82% 46% 59%
 fasta-redux 
No program
Java0.210.17?1443  11% 6% 89% 17%

† possible mismatch - one-core program compared to multi-core program.

 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.1

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

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

Revised BSD license

  Home   Conclusions   License   Play