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 JavaScript V8 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 JavaScript V8 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-nucleotide1/6
 fasta1/3 
 binary-trees1/21/2
 reverse-complement1/2±±
 n-body± 
 fannkuch-redux± 
 spectral-norm± 
 regex-dna±
 Clojure used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/61/61/21/2±

± 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 JavaScript V8 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 k-nucleotide 
Clojure21.4221.44400,0042723  0% 1% 0% 100%
JavaScript V8128.05128.1976,4361249  0% 1% 1% 100%
 fasta 
Clojure7.727.7367,4601653  1% 1% 1% 100%
JavaScript V821.9521.9752,068923  1% 1% 1% 100%
 binary-trees 
Clojure24.6224.66558,580705  1% 1% 1% 100%
JavaScript V850.0750.15944,176467  0% 0% 1% 100%
 reverse-complement 
Clojure3.963.97573,124727  2% 1% 1% 100%
JavaScript V87.757.76404,052787  0% 1% 1% 100%
 n-body 
Clojure27.7127.7262,1602162  0% 1% 0% 100%
JavaScript V835.8135.829,3041287  1% 0% 1% 100%
 fannkuch-redux 
Clojure70.2670.2978,5961491  1% 1% 0% 100%
JavaScript V875.5575.578,476539  1% 0% 0% 100%
 spectral-norm 
Clojure17.9417.9561,864918  0% 1% 1% 100%
JavaScript V815.7115.7110,536328  1% 0% 1% 100%
 regex-dna 
Clojure25.3225.34691,820707  1% 1% 0% 100%
JavaScript V83.443.45584,372373  0% 1% 1% 100%
 pidigits 
Clojure2.242.2474,5081944  0% 1% 1% 100%
No program
 fasta-redux 
Clojure2.502.5067,5881428  0% 1% 0% 100%
No program
 mandelbrot 
Clojure2.282.2867,9281195  0% 1% 0% 100%
JavaScript V8Bad Output

 4 : Are there other Clojure programs for these benchmarks?

Remember - those are just the fastest Clojure and JavaScript V8 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 JavaScript V8 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