The Computer Language
Benchmarks Game

Racket versus Lisp SBCL fastest programs

Back in April 2010, Russ Cox charitably suggested that only fannkuch-redux, fasta, k-nucleotide, mandlebrot, nbody, reverse-complement and spectral-norm were close to fair comparisons. As someone who implemented programming languages, his interest was "measuring the quality of the generated code when both compilers are presented with what amounts to the same program."

Differences in approach - to memory management, parallel programming, regex, arbitrary precision arithmetic, implementation technique - don't fit in that kind-of fair comparison — but we still have to deal with them.

These are only the fastest programs. There may be additional measurements for programs which seem more-like a fair comparison to you. Always look at the source code.

pidigits
source secs mem gz busy cpu load
Racket 2.59 49,620 1136 2.64 0% 1% 1% 100%
Lisp SBCL 12.28 129,808 493 12.44 100% 1% 1% 0%
spectral-norm
source secs mem gz busy cpu load
Racket 5.67 48,148 627 20.94 90% 98% 91% 91%
Lisp SBCL 3.99 16,472 899 15.75 99% 99% 98% 99%
reverse-complement
source secs mem gz busy cpu load
Racket 17.52 654,488 1030 17.73 0% 0% 1% 100%
Lisp SBCL 11.89 1,403,692 904 12.25 0% 2% 2% 100%
binary-trees
source secs mem gz busy cpu load
Racket 19.37 1,091,760 853 63.19 97% 82% 65% 82%
Lisp SBCL 11.94 309,372 943 25.35 68% 48% 45% 51%
n-body
source secs mem gz busy cpu load
Racket 53.97 54,040 1689 55.05 100% 1% 1% 0%
Lisp SBCL 26.25 17,364 1403 26.74 0% 1% 1% 100%
fasta
source secs mem gz busy cpu load
Racket 17.70 49,124 1280 36.02 100% 3% 100% 1%
Lisp SBCL 8.08 17,576 1757 8.18 1% 0% 0% 100%
mandelbrot
source secs mem gz busy cpu load
Racket 19.89 135,252 801 75.02 94% 96% 94% 93%
Lisp SBCL 8.83 49,916 2473 32.43 85% 99% 84% 100%
k-nucleotide
source secs mem gz busy cpu load
Racket 94.05 396,808 885 95.02 0% 86% 15% 0%
Lisp SBCL 17.05 542,300 2479 61.39 89% 86% 87% 98%
fannkuch-redux
source secs mem gz busy cpu load
Racket 101.66 46,588 1101 399.88 98% 97% 100% 99%
Lisp SBCL 15.42 32,896 1527 59.85 98% 92% 99% 100%
regex-redux
source secs mem gz busy cpu load
Racket 26.48 1,249,264 729 57.98 73% 61% 3% 82%
Lisp SBCL   Failed
Racket

Welcome to Racket v7.4.

Lisp SBCL

SBCL 1.5.1