/mobile Handheld Friendly website

vs

 1 : Are the Clojure programs faster? At a glance.

Each chart bar shows, for one unidentified benchmark, how much the fastest Clojure program used compared to the fastest Haskell GHC 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 Clojure programs faster? Approximately.

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

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

 Clojure used what fraction? used how many times more? 
Benchmark Time Memory Code
 binary-trees±±±
 k-nucleotide±±±
 regex-dna±1/2
 n-body± ±
 mandelbrot± ±
 pidigits 
 fannkuch-redux ±
 fasta 
 spectral-norm ±
 reverse-complement †±
 Clojure 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 Clojure 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 Clojure program are shown for comparison against measurements of the fastest Haskell GHC program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 binary-trees 
Clojure32.4310.17517,208750  77% 78% 93% 75%
Haskell GHC40.3313.56398,172612  66% 67% 100% 66%
 k-nucleotide 
Clojure42.6516.70369,9642723  75% 73% 55% 54%
Haskell GHC70.5319.10260,1881965  91% 91% 91% 98%
 regex-dna 
Clojure28.529.02634,928707  72% 75% 72% 97%
Haskell GHC33.458.76200,3921518  96% 93% 96% 98%
 n-body 
Clojure29.3927.9946,6842162  4% 3% 97% 3%
Haskell GHC25.0024.402,1921874  1% 1% 100% 1%
 mandelbrot 
Clojure58.3616.0886,3761069  92% 92% 90% 90%
Haskell GHC48.0612.0433,272782  100% 100% 100% 100%
 pidigits 
Clojure9.946.81387,2961794  21% 74% 10% 43%
Haskell GHC4.953.496,152341  14% 15% 100% 13%
 fannkuch-redux 
Clojure148.9038.1048,5281491  97% 98% 98% 98%
Haskell GHC64.4516.433,4521153  100% 100% 99% 94%
 fasta 
Clojure11.049.7050,2081653  25% 79% 6% 5%
Haskell GHC3.943.662,464979  4% 100% 3% 4%
 spectral-norm 
Clojure42.3111.4645,320808  97% 90% 91% 91%
Haskell GHC15.704.041,420984  97% 97% 97% 98%
 reverse-complement 
Clojure6.435.09405,1641044  11% 6% 98% 12% †
Haskell GHC1.541.45125,956999  3% 6% 4% 100% †
 fasta-redux 
Clojure2.691.4547,7321428  36% 29% 31% 90%
No program

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

 4 : Are there other Clojure programs for these benchmarks?

Remember - those are just the fastest Clojure and Haskell GHC programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Clojure.

Maybe one of those other Clojure programs is fastest on a different OS/machine.

 5 : Are there other faster programs for these benchmarks?

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

 Clojure :  

java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Server VM (build 25.0-b70, mixed mode)

Clojure 1.6.0

Clojure benchmarks

Home Page: http://clojure.org/

Download: http://clojure.org/downloads

Revised BSD license

  Home   Conclusions   License   Play