The Computer Language
Benchmarks Game

Clojure programs versus Java

by benchmark task performance

k-nucleotide
secs KB gz cpu cpu load
Clojure 39.97 395,688 2852 39.93 1% 0% 1% 100%
Java 33.48 1,190,032 1844 33.44 1% 1% 0% 100%
mandelbrot
secs KB gz cpu cpu load
Clojure 35.82 159,124 1195 35.80 1% 0% 1% 100%
Java 27.19 88,448 796 27.18 1% 0% 1% 100%
n-body
secs KB gz cpu cpu load
Clojure 34.41 53,824 2324 34.40 1% 0% 0% 100%
Java 24.33 24,036 1424 24.32 1% 0% 0% 100%
pidigits
secs KB gz cpu cpu load
Clojure 6.81 78,168 1944 6.80 2% 0% 0% 100%
Java 4.14 26,616 938 4.14 2% 0% 1% 100%
binary-trees
secs KB gz cpu cpu load
Clojure 21.37 530,752 657 21.34 1% 0% 1% 100%
Java 10.70 518,220 926 10.68 1% 1% 0% 100%
regex-dna
secs KB gz cpu cpu load
Clojure 5.80 189,656 707 5.77 1% 0% 1% 100%
Java 2.74 37,040 1284 2.74 2% 1% 0% 100%
fannkuch-redux
secs KB gz cpu cpu load
Clojure 148.36 57,432 1491 148.31 1% 0% 0% 100%
Java 67.66 26,644 1282 67.63 1% 1% 0% 100%
fasta
secs KB gz cpu cpu load
Clojure 11.00 60,252 1692 10.99 0% 1% 1% 100%
Java 4.81 24,836 1507 4.80 1% 1% 0% 100%
spectral-norm
secs KB gz cpu cpu load
Clojure 41.59 55,972 808 41.57 1% 0% 0% 100%
Java 16.37 26,876 950 16.36 1% 1% 0% 100%
reverse-complement
secs KB gz cpu cpu load
Clojure 6.16 424,656 1135 6.15 0% 1% 1% 100%
Java 1.80 522,620 745 1.80 3% 1% 1% 99%
fasta-redux
secs KB gz cpu cpu load
Clojure 9.41 63,572 1605 9.40 0% 1% 1% 100%
Java 2.05 24,576 1443 2.04 1% 0% 0% 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) 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)