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.28 37,324 1136 2.31 100% 0% 0% 0%
Lisp SBCL 12.36 228,532 493 12.43 100% 0% 0% 0%
spectral-norm
source secs mem gz busy cpu load
Racket 5.44 42,396 627 20.74 94% 95% 98% 94%
Lisp SBCL 4.00 16,424 915 15.77 99% 99% 99% 99%
reverse-complement
source secs mem gz busy cpu load
Racket 17.29 656,032 1030 17.54 0% 1% 100% 0%
Lisp SBCL 11.93 1,400,620 904 12.09 65% 1% 0% 36%
binary-trees
source secs mem gz busy cpu load
Racket 16.93 984,544 853 46.33 93% 57% 69% 55%
Lisp SBCL 9.74 377,188 943 22.77 56% 49% 78% 51%
fasta
source secs mem gz busy cpu load
Racket 17.54 38,132 1280 17.78 23% 1% 0% 77%
Lisp SBCL 8.65 18,024 1757 8.73 0% 0% 0% 100%
n-body
source secs mem gz busy cpu load
Racket 55.55 38,116 1689 56.63 1% 0% 100% 1%
Lisp SBCL 26.25 18,036 1403 26.63 1% 0% 0% 100%
mandelbrot
source secs mem gz busy cpu load
Racket 19.68 128,248 801 74.94 95% 96% 95% 95%
Lisp SBCL 8.90 50,424 2473 32.44 87% 83% 100% 95%
fannkuch-redux
source secs mem gz busy cpu load
Racket 91.45 34,768 1101 339.96 92% 100% 90% 90%
Lisp SBCL 15.52 33,216 1527 60.18 100% 99% 92% 98%
k-nucleotide
source secs mem gz busy cpu load
Racket 98.43 419,940 885 99.24 53% 0% 0% 47%
Lisp SBCL 16.20 537,860 2479 58.23 87% 89% 97% 87%
regex-redux
source secs mem gz busy cpu load
Racket 26.15 1,244,012 729 56.28 50% 69% 41% 56%
Lisp SBCL   Failed
Racket

Welcome to Racket v7.5.

Lisp SBCL

SBCL 1.5.8