The Computer Language
Benchmarks Game

Clojure programs versus Java

by benchmark task performance

regex-dna
source secs KB gz cpu cpu load
Clojure 8.82 642,768 707 28.21 77% 98% 73% 73%
Java 8.80 729,244 929 25.79 77% 80% 72% 66%
pidigits
source secs KB gz cpu cpu load
Clojure 5.30 75,192 1944 6.87 18% 39% 58% 17%
Java 4.07 26,324 938 4.17 3% 3% 4% 96%
n-body
source secs KB gz cpu cpu load
Clojure 33.26 54,276 2324 34.60 98% 2% 2% 3%
Java 24.31 24,156 1424 24.34 1% 1% 1% 100%
mandelbrot
source secs KB gz cpu cpu load
Clojure 9.79 155,704 1195 35.21 95% 88% 89% 89%
Java 7.12 87,832 796 27.79 97% 99% 97% 97%
k-nucleotide
source secs KB gz cpu cpu load
Clojure 15.35 393,528 2852 40.48 59% 65% 71% 70%
Java 10.61 1,199,184 1844 35.27 79% 78% 90% 88%
binary-trees
source secs KB gz cpu cpu load
Clojure 10.45 534,788 750 33.92 84% 90% 78% 73%
Java 5.88 513,180 926 19.64 95% 79% 87% 76%
fannkuch-redux
source secs KB gz cpu cpu load
Clojure 35.22 55,008 1491 135.77 98% 99% 98% 99%
Java 17.13 25,804 1282 67.56 100% 98% 99% 98%
spectral-norm
source secs KB gz cpu cpu load
Clojure 11.35 53,388 808 41.64 93% 93% 91% 90%
Java 4.30 26,476 950 16.53 99% 96% 95% 96%
reverse-complement
source secs KB gz cpu cpu load
Clojure 4.54 517,384 727 6.58 29% 12% 58% 49%
Java 1.44 308,060 1661 2.91 47% 31% 85% 43%
fasta-redux
source secs KB gz cpu cpu load
Clojure 8.10 60,924 1605 9.70 7% 64% 36% 15%
Java 1.93 24,588 1443 1.99 98% 2% 4% 3%
fasta
source secs KB gz cpu cpu load
Clojure 9.72 61,128 1692 11.15 7% 98% 5% 7%
Java 1.82 31,600 2457 5.90 80% 83% 80% 82%
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) 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) Server VM (build 25.45-b02, mixed mode)