/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 Clojure 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 Clojure 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
 reverse-complement †1/41/4±
 pidigits1/3 1/5
 spectral-norm1/2 ±
 fasta †1/2 1/2
 mandelbrot1/2 ±
 fannkuch-redux± 1/2
 n-body †± ±
 binary-trees±±±
 k-nucleotide±±1/2
 Haskell GHC used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/41/41/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 Clojure program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 reverse-complement 
Haskell GHC1.591.39126,352999  5% 4% 100% 7% †
Clojure14.156.13488,8281044  50% 47% 81% 56% †
 pidigits 
Haskell GHC4.102.746,244341  100% 19% 18% 17%
Clojure22.118.57319,9881794  71% 89% 65% 38%
 spectral-norm 
Haskell GHC15.704.041,944984  97% 97% 98% 97%
Clojure32.689.7196,464762  85% 86% 83% 84%
 fasta 
Haskell GHC4.524.022,732979  4% 100% 3% 4% †
Clojure18.179.63109,3881653  90% 35% 30% 35% †
 mandelbrot 
Haskell GHC45.8111.4837,028782  100% 100% 100% 100%
Clojure64.1318.04138,5161069  92% 81% 93% 90%
 fannkuch-redux 
Haskell GHC63.2216.144,008834  96% 100% 98% 100%
Clojure88.2123.3699,8761491  92% 96% 98% 92%
 n-body 
Haskell GHC24.2123.142,7241874  100% 2% 3% 3% †
Clojure42.5830.87102,8482162  16% 94% 13% 16% †
 binary-trees 
Haskell GHC65.9520.49815,356612  75% 75% 75% 99%
Clojure56.6116.97618,640750  74% 88% 82% 91%
 k-nucleotide 
Haskell GHC64.1517.55357,0721693  90% 90% 97% 89%
Clojure35.9513.12506,0802723  58% 79% 56% 82%
 fasta-redux 
No program
Clojure13.104.46100,0121399  72% 87% 79% 57%
 regex-dna 
Haskell GHCMake Error
Clojure12.874.42151,712707  84% 90% 83% 35%

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