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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 k-nucleotide 
Clojure24.8610.20241,9602723  48% 98% 26% 73% †
Lisp SBCL37.0837.12138,4882272  0% 1% 1% 100% †
 binary-trees 
Clojure50.5615.08572,800750  88% 82% 85% 82% †
Lisp SBCL20.9420.97350,456649  0% 1% 100% 1% †
 fasta 
Clojure7.996.5767,4001653  88% 5% 10% 20% †
Lisp SBCL7.647.655,0321751  100% 1% 0% 1% †
 n-body 
Clojure27.8726.6162,6242162  99% 2% 3% 2%
Lisp SBCL28.7628.775,0401398  1% 0% 0% 100%
 fasta-redux 
Clojure6.605.2769,3081428  8% 97% 12% 11% †
Lisp SBCL5.665.675,8282005  1% 1% 100% 0% †
 regex-dna 
Clojure5.532.21136,216707  96% 52% 53% 52%
Lisp SBCL4.092.01105,1921948  90% 35% 41% 41%
 fannkuch-redux 
Clojure82.0121.3359,1761491  99% 95% 96% 96%
Lisp SBCL64.1616.5221,4401518  92% 97% 99% 100%
 reverse-complement 
Clojure4.773.42402,8561044  32% 9% 83% 16% †
Lisp SBCL2.552.56372,800896  0% 2% 100% 1% †
 spectral-norm 
Clojure18.765.5364,384808  83% 81% 81% 95%
Lisp SBCL15.734.025,836883  98% 98% 98% 98%
 mandelbrot 
Clojure54.5415.28125,4001069  91% 89% 88% 89%
Lisp SBCL28.407.7136,2082459  100% 84% 88% 97%
 pidigits 
Clojure8.815.54209,3201794  56% 25% 23% 56% †
Lisp SBCL2.372.375,7121073  1% 2% 5% 100% †

† 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 Lisp SBCL 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 Lisp SBCL 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) 64-Bit Server VM (build 25.0-b70, mixed mode)

Clojure 1.6

Clojure benchmarks

Home Page: http://clojure.org/

Download: http://clojure.org/downloads

Revised BSD license

  Home   Conclusions   License   Play