The Computer Language
Benchmarks Game

Clojure programs versus Java

by benchmark task performance

k-nucleotide
source secs KB gz cpu cpu load
Clojure 22.22 387,344 2852 22.20 0% 2% 1% 100%
Java 34.83 1,124,104 1844 34.79 1% 1% 0% 100%
spectral-norm
source secs KB gz cpu cpu load
Clojure 18.01 66,988 918 18.00 1% 0% 0% 100%
Java 16.22 32,332 950 16.22 0% 1% 1% 100%
fannkuch-redux
source secs KB gz cpu cpu load
Clojure 77.54 88,208 1491 77.50 1% 1% 0% 100%
Java 69.27 47,784 1282 69.25 1% 0% 0% 100%
n-body
source secs KB gz cpu cpu load
Clojure 27.46 69,640 2324 27.44 1% 0% 1% 100%
Java 22.68 30,056 1424 22.67 0% 0% 1% 100%
regex-dna
source secs KB gz cpu cpu load
Clojure 27.47 683,964 707 27.44 1% 1% 0% 100%
Java 21.40 575,372 1284 21.39 1% 0% 1% 100%
mandelbrot
source secs KB gz cpu cpu load
Clojure 32.02 149,528 1195 32.00 1% 1% 0% 100%
Java 23.93 91,684 796 23.92 1% 1% 1% 100%
fasta
source secs KB gz cpu cpu load
Clojure 7.73 76,608 1692 7.72 1% 1% 0% 100%
Java 5.15 31,376 1507 5.14 1% 1% 0% 100%
pidigits
source secs KB gz cpu cpu load
Clojure 5.40 91,928 1944 5.40 1% 1% 0% 100%
Java 3.20 33,052 938 3.20 1% 1% 1% 100%
fasta-redux
source secs KB gz cpu cpu load
Clojure 6.22 77,756 1605 6.21 1% 0% 1% 100%
Java 2.64 30,364 1443 2.63 2% 1% 1% 100%
reverse-complement
source secs KB gz cpu cpu load
Clojure 4.04 589,228 727 4.03 0% 1% 1% 100%
Java 1.70 474,400 745 1.70 1% 1% 3% 99%
binary-trees
source secs KB gz cpu cpu load
Clojure 24.52 617,100 657 24.48 0% 1% 1% 100%
Java 7.39 414,024 583 7.38 1% 1% 1% 100%
Clojure

Clojure 1.7.0

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Java

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)