/mobile Handheld Friendly website

÷

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


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

 Haskell GHC used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits1/21/91/5
 fasta±1/61/2
 reverse-complement±1/4±
 fannkuch-redux±1/9±
 n-body±1/8±
 spectral-norm±1/14±
 binary-trees±1/3±
 regex-dna±1/2±
 k-nucleotide±1/2
 mandelbrot1/2±
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2±±±

± 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 7 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Haskell GHC3.063.075,284341  0% 1% 1% 100%
Java 77.337.3447,4401826  0% 0% 0% 100%
 fasta 
Haskell GHC3.363.362,364979  0% 0% 0% 100%
Java 74.924.9214,9321507  0% 1% 0% 100%
 reverse-complement 
Haskell GHC1.541.55125,748999  0% 1% 0% 100%
Java 71.881.92511,484745  2% 1% 3% 100%
 fannkuch-redux 
Haskell GHC63.9263.941,5881153  0% 0% 0% 100%
Java 771.2671.2813,9361282  0% 0% 0% 100%
 n-body 
Haskell GHC23.6823.691,8401874  0% 0% 0% 100%
Java 724.4024.4113,9961424  0% 0% 0% 100%
 spectral-norm 
Haskell GHC15.7215.721,056984  0% 0% 0% 100%
Java 716.1316.1414,924950  1% 0% 0% 100%
 binary-trees 
Haskell GHC16.4916.51183,532612  0% 0% 1% 100%
Java 715.7015.75506,592603  0% 1% 0% 100%
 regex-dna 
Haskell GHC28.4628.48266,4841518  0% 0% 0% 100%
Java 722.6322.66557,0801284  0% 0% 0% 100%
 k-nucleotide 
Haskell GHC71.5571.61308,8602749  0% 0% 0% 100%
Java 750.6950.73494,0401630  1% 0% 0% 100%
 mandelbrot 
Haskell GHC43.9643.9835,364782  0% 0% 0% 100%
Java 726.9226.9367,880796  0% 0% 0% 100%
 fasta-redux 
No program
Java 70.120.12?1443  0% 33% 0% 100%

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

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

llvm version 3.1-2ubuntu1

The Glorious Glasgow Haskell Compilation System, version 7.6.2

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

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

Revised BSD license

  Home   Conclusions   License   Play