The Computer Language
Benchmarks Game

Lisp SBCL programs versus Java

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Lisp SBCL 1.78 20,912 940 1.78 1% 2% 1% 99%
Java 3.12 36,788 938 3.31 6% 3% 4% 96%
fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 16.90 33,672 1527 65.55 100% 98% 91% 99%
Java 17.26 32,116 1282 67.75 98% 99% 97% 99%
spectral-norm
source secs mem gz cpu cpu load
Lisp SBCL 4.55 19,788 915 15.83 88% 86% 89% 87%
Java 4.23 34,472 950 16.27 96% 97% 97% 96%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 27.25 18,044 1403 27.24 100% 0% 1% 0%
Java 22.10 33,136 1429 22.20 31% 1% 1% 70%
mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.74 50,540 2473 28.53 99% 85% 86% 100%
Java 6.04 76,528 796 23.34 98% 97% 97% 97%
k-nucleotide
source secs mem gz cpu cpu load
Lisp SBCL 17.37 542,680 2479 63.34 88% 89% 100% 88%
Java 8.70 375,568 1812 27.17 80% 72% 74% 88%
reverse-complement
source secs mem gz cpu cpu load
Lisp SBCL 2.58 269,616 904 2.57 3% 0% 0% 100%
Java 1.03 191,064 2183 2.31 52% 57% 43% 74%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 7.99 19,688 1757 7.99 33% 1% 1% 68%
Java 2.33 43,924 2473 6.07 53% 71% 63% 74%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 29.78 375,296 594 29.74 0% 1% 100% 0%
Java 8.34 893,008 835 28.20 87% 79% 96% 81%
regex-redux
source secs mem gz cpu cpu load
Lisp SBCL   Failed
Java 0.62 45,052 929 1.84 86% 66% 72% 75%
Lisp SBCL

SBCL 1.4.0

Java

java 9.0.1
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)