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.78 20,912 940 1.78 1% 2% 1% 99%
C++ g++ 1.88 4,276 513 1.88 0% 100% 1% 0%
fannkuch-redux
source secs mem gz cpu cpu load
Lisp SBCL 16.90 33,672 1527 65.55 100% 98% 91% 99%
C++ g++ 10.61 2,044 980 41.90 100% 96% 100% 100%
k-nucleotide
source secs mem gz cpu cpu load
Lisp SBCL 17.37 542,680 2479 63.34 88% 89% 100% 88%
C++ g++ 7.75 165,180 1276 26.02 80% 96% 82% 79%
spectral-norm
source secs mem gz cpu cpu load
Lisp SBCL 4.55 19,788 915 15.83 88% 86% 89% 87%
C++ g++ 2.02 1,332 1044 7.91 99% 99% 99% 99%
n-body
source secs mem gz cpu cpu load
Lisp SBCL 27.25 18,044 1403 27.24 100% 0% 1% 0%
C++ g++ 8.23 1,856 1763 8.23 100% 1% 1% 0%
reverse-complement
source secs mem gz cpu cpu load
Lisp SBCL 2.58 269,616 904 2.57 3% 0% 0% 100%
C++ g++ 0.64 247,800 2280 1.03 89% 22% 31% 30%
mandelbrot
source secs mem gz cpu cpu load
Lisp SBCL 7.74 50,540 2473 28.53 99% 85% 86% 100%
C++ g++ 1.64 27,636 1002 6.51 100% 99% 100% 99%
fasta
source secs mem gz cpu cpu load
Lisp SBCL 7.99 19,688 1757 7.99 33% 1% 1% 68%
C++ g++ 1.49 4,372 2324 5.28 89% 88% 90% 90%
binary-trees
source secs mem gz cpu cpu load
Lisp SBCL 29.78 375,296 594 29.74 0% 1% 100% 0%
C++ g++ 2.55 135,568 809 7.99 85% 96% 69% 66%
regex-redux
source secs mem gz cpu cpu load
Lisp SBCL   Failed
C++ g++ 0.02 ? 1315 0.06 100% 50% 67% 100%
Lisp SBCL

SBCL 1.4.0

C++ g++

g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0