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.14 37,080 938 3.35 4% 4% 1% 98%
fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 15.69 32,332 1527 60.61 97% 92% 98% 99%
Java 17.74 31,900 1282 69.78 99% 98% 99% 98%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 8.49 369,508 943 21.44 62% 62% 77% 58%
Java 8.29 930,040 835 28.13 78% 94% 85% 86%
spectral-norm
source secs mem gz cpu cpu load
Lisp SBCL 4.55 19,324 890 15.83 89% 89% 85% 87%
Java 4.41 35,028 950 16.79 96% 97% 98% 95%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 27.13 17,764 1403 27.12 0% 100% 0% 1%
Java 22.19 33,272 1489 22.28 35% 2% 66% 1%
mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.87 49,432 2473 28.68 84% 100% 83% 99%
Java 6.13 76,876 796 23.60 96% 96% 96% 97%
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 384,756 1812 26.91 69% 88% 81% 75%
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.18 672,272 2183 7.17 67% 46% 43% 77%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 10.19 17,700 1587 10.18 0% 34% 67% 0%
Java 2.29 43,724 2473 6.16 67% 76% 59% 70%
regex-redux
source secs mem gz cpu cpu load
Lisp SBCL   Failed
Java 0.65 45,356 929 2.01 73% 88% 77% 75%
Lisp SBCL

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

Java

java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)