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

† 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 
Clojure21.878.56403,4682723  68% 36% 84% 69% †
Lisp SBCL32.9532.99152,3442301  0% 1% 0% 100% †
 regex-dna 
Clojure27.168.59606,564707  69% 92% 75% 81%
Lisp SBCL42.5120.18920,2761948  85% 43% 43% 41%
 binary-trees 
Clojure47.0413.93609,300750  83% 87% 89% 81% †
Lisp SBCL23.7523.79310,176649  1% 100% 1% 1% †
 fasta 
Clojure7.976.6473,5001653  5% 50% 8% 58% †
Lisp SBCL7.847.848,8841751  1% 100% 1% 0% †
 n-body 
Clojure28.2027.0173,6641440  98% 3% 2% 3%
Lisp SBCL26.6926.708,6561398  1% 0% 100% 0%
 reverse-complement 
Clojure4.062.73569,780727  15% 35% 95% 7% †
Lisp SBCL2.412.42396,200896  0% 0% 0% 100% †
 mandelbrot 
Clojure32.178.95154,3401195  89% 89% 87% 97%
Lisp SBCL28.567.8460,3322459  95% 87% 99% 85%
 fannkuch-redux 
Clojure76.3319.9469,4561491  97% 97% 96% 95%
Lisp SBCL65.1216.7534,0041518  98% 99% 100% 92%
 spectral-norm 
Clojure18.375.2865,296918  84% 98% 83% 84%
Lisp SBCL15.914.1223,184906  96% 97% 97% 97%
 pidigits 
Clojure5.434.1984,5881944  64% 13% 47% 8% †
Lisp SBCL2.372.379,1881073  0% 2% 2% 100% †
 fasta-redux 
Clojure2.451.3459,7161428  39% 33% 89% 26%
Lisp SBCLBad Output

† 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_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Clojure 1.6

Clojure benchmarks

Home Page: http://clojure.org/

Download: http://clojure.org/downloads

Revised BSD license

  Home   Conclusions   License   Play