The Computer Language
Benchmarks Game

Lisp SBCL programs versus C++ g++

by benchmark task performance

fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 16.83 48,952 1518 65.33 92% 99% 100% 98%
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.66 768,704 1961 53.39 35% 38% 73% 43%
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.40 34,396 883 15.92 91% 90% 92% 91%
C++ g++ 1.99 1,880 1044 7.89 100% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 27.24 22,952 1398 27.23 1% 0% 0% 100%
C++ g++ 9.31 1,052 1544 9.30 1% 1% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
Lisp SBCL 21.36 515,556 2413 66.49 99% 71% 71% 72%
C++ g++ 7.18 164,052 1252 24.28 83% 83% 93% 83%
reverse-complement
source secs mem gz cpu cpu load
Lisp SBCL 2.12 405,988 896 2.11 3% 100% 0% 0%
C++ g++ 0.60 211,852 2275 0.98 38% 25% 82% 27%
mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.87 70,880 2459 28.53 85% 97% 100% 82%
C++ g++ 1.73 34,064 1002 6.80 98% 98% 98% 99%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 8.11 23,048 1751 8.10 1% 0% 1% 100%
C++ g++ 1.48 4,176 2313 5.25 89% 90% 88% 89%
pidigits
source secs mem gz cpu cpu load
Lisp SBCL 11.98 339,068 493 11.96 1% 1% 100% 0%
C++ g++ 1.89 3,868 508 1.89 100% 1% 2% 1%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 26.56 538,328 594 26.51 1% 100% 1% 0%
C++ g++ 2.36 114,404 809 7.69 86% 71% 87% 85%
Lisp SBCL

SBCL 1.3.16

C++ g++

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