The Computer Language
Benchmarks Game

Lisp SBCL versus C++ g++ fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

spectral-norm
source secs mem gz busy cpu load
Lisp SBCL 1.44 15,680 762 5.72 99% 99% 99% 99%
C++ g++ 0.72 1,192 1044 2.85 99% 99% 100% 100%
fannkuch-redux
source secs mem gz busy cpu load
Lisp SBCL 9.63 32,388 1527 37.69 98% 95% 99% 99%
C++ g++ 3.29 1,892 1528 13.06 100% 100% 100% 97%
binary-trees
source secs mem gz busy cpu load
Lisp SBCL 2.84 529,972 932 7.09 73% 46% 63% 67%
C++ g++ 0.94 176,428 1122 3.39 86% 88% 100% 85%
n-body
source secs mem gz busy cpu load
Lisp SBCL 7.83 17,892 1403 7.88 0% 0% 100% 0%
C++ g++ 2.12 764 1927 2.17 0% 2% 100% 0%
mandelbrot
source secs mem gz busy cpu load
Lisp SBCL 4.09 46,684 2447 16.19 99% 99% 99% 99%
C++ g++ 0.84 34,780 3542 3.27 99% 98% 98% 96%
pidigits
source secs mem gz busy cpu load
Lisp SBCL 3.34 607,800 493 3.38 0% 0% 100% 1%
C++ g++ 0.66 5,152 986 2.63 100% 100% 100% 100%
k-nucleotide
source secs mem gz busy cpu load
Lisp SBCL 10.29 512,240 2479 37.48 88% 99% 88% 90%
C++ g++ 1.93 156,548 1631 5.88 69% 93% 69% 75%
fasta
source secs mem gz busy cpu load
Lisp SBCL 4.71 18,072 1757 4.75 0% 0% 0% 100%
C++ g++ 0.77 2,504 2751 1.52 64% 0% 99% 37%
reverse-complement
source secs mem gz busy cpu load
Lisp SBCL 6.40 1,490,256 904 6.42 0% 0% 0% 100%
C++ g++ 0.52 1,788 1853 0.52 0% 98% 0% 2%
regex-redux
source secs mem gz busy cpu load
Lisp SBCL 15.34 925,000 1972 31.90 42% 49% 63% 53%
C++ g++ 1.10 203,924 1315 3.43 63% 77% 71% 100%
Lisp SBCL

SBCL 2.1.1

C++ g++

g++ (Ubuntu 10.3.0-1ubuntu1) 10.3.0