The Computer Language
Benchmarks Game

Lisp SBCL programs versus Java

by benchmark task performance

pidigits
secs KB gz cpu cpu load
Lisp SBCL 2.37 20,784 1073 2.37 1% 0% 0% 100%
Java 3.12 33,528 938 3.22 3% 2% 80% 21%
fannkuch-redux
secs KB gz cpu cpu load
Lisp SBCL 16.58 47,692 1518 64.33 100% 98% 99% 92%
Java 17.41 33,032 1282 68.64 98% 98% 99% 99%
spectral-norm
secs KB gz cpu cpu load
Lisp SBCL 4.16 29,640 883 15.91 95% 96% 96% 96%
Java 4.28 32,696 950 16.53 96% 96% 96% 99%
n-body
secs KB gz cpu cpu load
Lisp SBCL 26.60 17,424 1398 26.60 0% 1% 100% 0%
Java 22.66 30,036 1424 22.68 97% 3% 0% 1%
mandelbrot
secs KB gz cpu cpu load
Lisp SBCL 7.88 68,904 2459 28.53 99% 100% 83% 81%
Java 6.27 88,992 796 24.24 96% 97% 97% 98%
reverse-complement
secs KB gz cpu cpu load
Lisp SBCL 2.27 304,384 896 2.26 0% 1% 1% 100%
Java 1.27 315,296 1661 2.68 41% 48% 34% 92%
fasta-redux
secs KB gz cpu cpu load
Lisp SBCL 6.19 19,232 2005 6.18 1% 1% 0% 100%
Java 2.59 29,940 1443 2.65 1% 76% 1% 25%
regex-dna
secs KB gz cpu cpu load
Lisp SBCL 20.98 653,188 1948 45.23 43% 91% 40% 43%
Java 8.24 761,724 929 24.70 68% 73% 77% 83%
k-nucleotide
secs KB gz cpu cpu load
Lisp SBCL 33.04 163,092 2301 33.00 100% 0% 1% 0%
Java 11.29 1,118,288 1844 38.66 83% 97% 82% 82%
fasta
secs KB gz cpu cpu load
Lisp SBCL 7.61 17,284 1751 7.60 1% 1% 100% 0%
Java 2.19 39,368 2457 5.60 58% 72% 66% 61%
binary-trees
secs KB gz cpu cpu load
Lisp SBCL 24.79 306,652 649 24.74 99% 1% 1% 0%
Java 6.20 524,828 926 20.90 87% 91% 82% 80%
Lisp SBCL

This is SBCL 1.2.15, an implementation of ANSI Common Lisp.

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)