The Computer Language
Benchmarks Game

Lisp SBCL versus Java fastest programs

by faster benchmark performance

pidigits
source secs mem gz cpu cpu load
Lisp SBCL 1.79 20,196 940 1.79 1% 2% 1% 100%
Java 3.13 37,324 938 3.35 98% 5% 3% 3%
fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 15.69 32,332 1527 60.61 97% 92% 98% 99%
Java 17.91 31,560 1282 70.25 99% 98% 99% 97%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 8.41 364,332 943 21.26 58% 84% 57% 56%
Java 8.28 982,224 835 27.19 79% 86% 83% 83%
spectral-norm
source secs mem gz cpu cpu load
Lisp SBCL 4.55 19,324 890 15.83 89% 89% 85% 87%
Java 4.27 32,960 950 16.41 95% 97% 98% 96%
mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.87 49,432 2473 28.68 84% 100% 83% 99%
Java 6.96 76,748 796 27.07 98% 98% 96% 98%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 27.13 17,764 1403 27.12 0% 100% 0% 1%
Java 22.00 32,496 1489 22.07 1% 100% 0% 1%
k-nucleotide
source secs mem gz cpu cpu load
Lisp SBCL 17.62 511,476 2479 63.52 87% 87% 87% 100%
Java 8.66 385,768 1812 26.52 76% 81% 74% 76%
reverse-complement
source secs mem gz cpu cpu load
Lisp SBCL 11.31 1,406,764 904 11.29 0% 100% 2% 0%
Java 3.31 626,956 2183 7.44 56% 60% 83% 45%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 10.19 17,700 1587 10.18 0% 34% 67% 0%
Java 2.32 42,556 2473 6.24 73% 85% 49% 63%
regex-redux
source secs mem gz cpu cpu load
Lisp SBCL   Failed
Java 0.57 39,944 929 1.71 84% 63% 72% 81%
Lisp SBCL

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

Java

openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)