/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/101/5
 fasta±1/71/2
 spectral-norm±1/11±
 n-body±1/7±
 regex-dna±1/3
 reverse-complement±1/21/2
 k-nucleotide±±±
 mandelbrot1/2±
 binary-trees1/2
 fannkuch-redux †1/71/2
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/21/2±±

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Haskell GHC4.182.776,076341  18% 100% 17% 14%
Java 710.204.2960,5201808  68% 62% 65% 45%
 fasta 
Haskell GHC4.684.032,632979  5% 86% 19% 5%
Java 75.215.1418,2841507  0% 1% 1% 100%
 spectral-norm 
Haskell GHC15.704.041,584984  97% 98% 95% 100%
Java 717.614.5117,540950  97% 97% 99% 98%
 n-body 
Haskell GHC24.8623.442,3761874  64% 6% 17% 20%
Java 722.5122.5017,2561424  0% 0% 100% 0%
 regex-dna 
Haskell GHC36.539.58248,7721518  95% 97% 95% 96%
Java 724.828.55709,672929  65% 82% 65% 79%
 reverse-complement 
Haskell GHC1.781.49126,196999  80% 28% 6% 9%
Java 72.791.31298,4041661  61% 77% 40% 39%
 k-nucleotide 
Haskell GHC68.5018.58374,4881693  91% 93% 93% 93%
Java 746.3913.25450,9721630  86% 84% 96% 85%
 mandelbrot 
Haskell GHC43.6610.9536,536782  100% 100% 100% 100%
Java 727.827.0769,460796  99% 98% 99% 98%
 binary-trees 
Haskell GHC65.0020.04787,716612  90% 85% 75% 75%
Java 722.319.24523,7841007  37% 65% 58% 83%
 fannkuch-redux 
Haskell GHC75.4868.672,336658  15% 42% 43% 10% †
Java 751.9013.1517,3481282  99% 99% 98% 98% †
 fasta-redux 
No program
Java 70.130.11?1443  0% 9% 31% 90%

† 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 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