The Computer Language
Benchmarks Game

Lisp SBCL programs versus C++ g++

by benchmark task performance

mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.83 71,292 2459 28.53 99% 91% 99% 83%
C++ g++ 5.82 33,952 726 22.40 96% 95% 95% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 16.81 49,124 1518 65.36 99% 98% 97% 95%
C++ g++ 10.58 2,520 950 41.88 100% 100% 99% 98%
spectral-norm
source secs mem gz cpu cpu load
Lisp SBCL 4.08 34,916 883 15.72 98% 98% 98% 97%
C++ g++ 2.01 1,792 1044 8.00 100% 100% 100% 100%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 28.49 23,196 1398 28.48 0% 1% 100% 0%
C++ g++ 9.30 1,712 1763 9.29 100% 1% 1% 0%
reverse-complement
source secs mem gz cpu cpu load
Lisp SBCL 2.11 406,464 896 2.11 0% 0% 100% 0%
C++ g++ 0.59 217,564 2275 0.84 26% 78% 12% 34%
regex-redux
source secs mem gz cpu cpu load
Lisp SBCL 28.64 767,024 1961 52.91 69% 32% 50% 36%
C++ g++ 6.75 183,256 700 9.80 100% 39% 8% 0%
k-nucleotide
source secs mem gz cpu cpu load
Lisp SBCL 32.92 168,840 2301 32.88 1% 0% 1% 100%
C++ g++ 7.15 164,080 1252 24.21 82% 83% 80% 96%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 7.98 23,196 1751 7.98 1% 1% 1% 100%
C++ g++ 1.47 9,484 2291 5.13 88% 88% 87% 88%
pidigits
source secs mem gz cpu cpu load
Lisp SBCL 11.88 339,372 493 11.85 1% 0% 0% 100%
C++ g++ 1.89 3,740 508 1.89 2% 99% 0% 2%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 21.10 353,248 649 21.06 1% 100% 0% 0%
C++ g++ 3.36 158,320 846 10.59 81% 82% 78% 75%
Lisp SBCL

SBCL 1.3.15

C++ g++

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609