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

± 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
 spectral-norm 
Clojure18.1318.1447,528808  0% 0% 0% 100%
Java 717.0017.0018,320514  0% 0% 0% 100%
 n-body 
Clojure26.9126.9245,2202162  0% 0% 0% 100%
Java 722.5122.5217,0161424  0% 0% 0% 100%
 binary-trees 
Clojure24.1424.17534,444705  0% 0% 0% 100%
Java 716.3716.42499,404603  0% 1% 0% 100%
 k-nucleotide 
Clojure89.2789.33993,4323030  0% 0% 0% 100%
Java 750.5050.55451,2081602  0% 0% 0% 100%
 fannkuch-redux 
Clojure132.60132.6953,6241088  0% 0% 0% 100%
Java 770.1870.2017,1681282  0% 0% 0% 100%
 regex-dna 
Clojure45.7145.78564,756710  0% 0% 0% 100%
Java 723.1123.17561,7321284  0% 0% 0% 100%
 mandelbrot 
Clojure51.9251.9490,2001069  0% 0% 0% 100%
Java 723.7923.8069,816796  0% 0% 0% 100%
 fasta 
Clojure11.5311.5458,3401839  0% 0% 0% 100%
Java 75.185.1918,1321507  0% 0% 0% 100%
 reverse-complement 
Clojure4.294.30360,0201044  0% 0% 0% 100%
Java 71.791.83514,504745  0% 1% 0% 99%
 fasta-redux 
Clojure9.539.5455,3081503  0% 0% 0% 100%
Java 72.552.5617,2641443  1% 1% 0% 100%
 pidigits 
Clojure25.0125.0484,116571  0% 0% 0% 100%
Java 75.905.9163,3441826  0% 0% 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) 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