The Computer Language
Benchmarks Game

Clojure programs versus Java

by benchmark task performance

mandelbrot
secs KB gz cpu cpu load
Clojure 34.85 147,476 1195 34.83 1% 75% 26% 100%
Java 27.19 88,448 796 27.18 1% 0% 1% 100%
binary-trees
secs KB gz cpu cpu load
Clojure 21.25 525,540 657 21.22 2% 1% 1% 100%
Java 16.35 526,588 584 16.33 1% 1% 0% 100%
n-body
secs KB gz cpu cpu load
Clojure 34.53 51,772 2162 34.51 1% 21% 80% 100%
Java 24.33 24,036 1424 24.32 1% 0% 0% 100%
k-nucleotide
secs KB gz cpu cpu load
Clojure 39.73 390,508 2723 39.71 1% 100% 1% 100%
Java 23.60 257,300 2568 23.58 0% 0% 1% 100%
regex-dna
secs KB gz cpu cpu load
Clojure 5.68 189,732 707 5.68 2% 100% 1% 100%
Java 2.74 37,040 1284 2.74 2% 1% 0% 100%
fannkuch-redux
secs KB gz cpu cpu load
Clojure 145.68 53,848 1491 145.62 17% 55% 98% 100%
Java 67.66 26,644 1282 67.63 1% 1% 0% 100%
pidigits
secs KB gz cpu cpu load
Clojure 9.54 397,788 1794 9.53 1% 1% 100% 100%
Java 4.14 26,616 938 4.14 2% 0% 1% 100%
fasta
secs KB gz cpu cpu load
Clojure 11.40 56,676 1653 11.40 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 40.26 52,220 808 40.24 1% 100% 2% 100%
Java 16.37 26,876 950 16.36 1% 1% 0% 100%
reverse-complement
secs KB gz cpu cpu load
Clojure 6.11 422,228 1044 6.10 1% 100% 0% 100%
Java 1.80 522,620 745 1.80 3% 1% 1% 99%
fasta-redux
secs KB gz cpu cpu load
Clojure 9.16 60,612 1399 9.15 1% 0% 1% 100%
Java 2.05 24,576 1443 2.04 1% 0% 0% 100%
Clojure

Clojure 1.8.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)