The Computer Language
Benchmarks Game

Lisp SBCL programs versus C++ g++

by benchmark task performance

pidigits
source secs mem gz cpu cpu load
Lisp SBCL 1.79 25,164 940 1.79 3% 2% 1% 100%
C++ g++ 1.89 3,868 508 1.89 100% 1% 2% 1%
fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 16.33 48,200 1518 63.53 98% 93% 100% 100%
C++ g++ 10.35 2,624 980 40.60 99% 99% 100% 95%
regex-redux
source secs mem gz cpu cpu load
Lisp SBCL 28.07 761,376 1961 52.62 47% 41% 40% 62%
C++ g++ 17.14 220,088 853 25.22 95% 3% 51% 1%
spectral-norm
source secs mem gz cpu cpu load
Lisp SBCL 4.39 34,312 893 15.94 92% 90% 91% 92%
C++ g++ 1.99 1,880 1044 7.89 100% 99% 99% 99%
k-nucleotide
source secs mem gz cpu cpu load
Lisp SBCL 17.02 530,460 2467 62.38 89% 100% 89% 89%
C++ g++ 7.18 164,052 1252 24.28 83% 83% 93% 83%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 27.28 22,344 1398 27.28 1% 1% 0% 100%
C++ g++ 9.31 1,052 1544 9.30 1% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Lisp SBCL 2.43 405,052 896 2.43 100% 0% 1% 1%
C++ g++ 0.60 211,852 2275 0.98 38% 25% 82% 27%
mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.85 72,308 2459 28.53 91% 93% 100% 83%
C++ g++ 1.73 34,064 1002 6.80 98% 98% 98% 99%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 7.45 23,984 1751 7.45 0% 0% 0% 100%
C++ g++ 1.48 4,176 2313 5.25 89% 90% 88% 89%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 26.90 536,352 594 26.86 0% 1% 1% 100%
C++ g++ 2.36 114,404 809 7.69 86% 71% 87% 85%
Lisp SBCL

SBCL 1.3.21

C++ g++

g++ (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406