/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 Java 7 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 Java 7 program.

 Clojure used what fraction? used how many times more? 
Benchmark Time Memory Code
 n-body
 binary-trees±±
 k-nucleotide±
 mandelbrot±
 regex-dna±1/2
 spectral-norm±
 fannkuch-redux±
 fasta±
 pidigits1/3
 reverse-complement±±
 fasta-redux12×±
 Clojure used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)10×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 Java 7 program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 n-body 
Clojure42.8242.8467,4922162  0% 0% 0% 100%
Java 724.4024.4113,9961424  0% 0% 0% 100%
 binary-trees 
Clojure29.3429.37558,896657  0% 0% 0% 100%
Java 715.7015.75506,592603  0% 1% 0% 100%
 k-nucleotide 
Clojure103.92104.011,012,0001737  0% 0% 0% 100%
Java 750.6950.73494,0401630  1% 0% 0% 100%
 mandelbrot 
Clojure63.5763.60108,5121069  0% 0% 0% 100%
Java 726.9226.9367,880796  0% 0% 0% 100%
 regex-dna 
Clojure63.3863.41548,084710  0% 0% 0% 100%
Java 722.6322.66557,0801284  0% 0% 0% 100%
 spectral-norm 
Clojure51.2951.3270,744808  0% 0% 0% 100%
Java 716.1316.1414,924950  1% 0% 0% 100%
 fannkuch-redux 
Clojure280.95281.0866,0881088  0% 0% 0% 100%
Java 771.2671.2813,9361282  0% 0% 0% 100%
 fasta 
Clojure21.2621.2778,6601839  0% 0% 0% 100%
Java 74.924.9214,9321507  0% 1% 0% 100%
 pidigits 
Clojure44.7044.7583,748571  0% 0% 0% 100%
Java 77.337.3447,4401826  0% 0% 0% 100%
 reverse-complement 
Clojure14.4014.42484,1241044  0% 0% 0% 100%
Java 71.881.92511,484745  2% 1% 3% 100%
 fasta-redux 
Clojure22.5022.5378,9201503  1% 0% 0% 100%
Java 71.891.8914,9641443  0% 1% 0% 100%

 4 : Are there other Clojure programs for these benchmarks?

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