/mobile Handheld Friendly website

÷

 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.


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.

 Clojure used what fraction? used how many times more? 
Benchmark Time Memory Code
 k-nucleotide1/3
 reverse-complement1/3±
 binary-trees1/2±
 fasta1/2
 n-body1/2±
 spectral-norm±
 fannkuch-redux
 regex-dna12×
 Clojure used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)1/31/31/21/2±12×

± 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 
Clojure89.2789.33993,4323030  0% 0% 0% 100%
JavaScript V8304.21305.14446,180451  0% 0% 0% 100%
 reverse-complement 
Clojure4.294.30360,0201044  0% 0% 0% 100%
JavaScript V813.4213.44272,120498  0% 0% 0% 100%
 binary-trees 
Clojure24.1424.17534,444705  0% 0% 0% 100%
JavaScript V841.9442.02785,320467  0% 0% 0% 100%
 fasta 
Clojure11.5311.5458,3401839  0% 0% 0% 100%
JavaScript V819.0419.058,352791  0% 0% 0% 100%
 n-body 
Clojure26.9126.9245,2202162  0% 0% 0% 100%
JavaScript V843.6843.706,5761527  0% 0% 0% 100%
 spectral-norm 
Clojure18.1318.1447,528808  0% 0% 0% 100%
JavaScript V815.7015.718,212328  0% 0% 0% 100%
 fannkuch-redux 
Clojure132.60132.6953,6241088  0% 0% 0% 100%
JavaScript V878.7278.756,064539  0% 0% 0% 100%
 regex-dna 
Clojure45.7145.78564,756710  0% 0% 0% 100%
JavaScript V83.723.73248,004373  0% 0% 1% 100%
 fasta-redux 
Clojure2.412.4248,6081503  0% 0% 1% 100%
No program
 pidigits 
Clojure3.983.9958,484571  0% 0% 0% 100%
No program
 mandelbrot 
Clojure2.192.1956,8721069  0% 0% 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.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Clojure 1.5.0

Clojure benchmarks

Home Page: http://clojure.org/

Download: http://clojure.org/downloads

Revised BSD license

  Home   Conclusions   License   Play