The Computer Language
24.11 Benchmarks Game

Lisp SBCL versus Racket fastest performance

How the programs are written matters! Always look at the source code.

If the fastest programs are hand-written vector instructions, does the host language matter? You might be more interested in the less optimised programs — more seconds, less gz source code.

fannkuch-redux
source secs mem gz cpu secs
Lisp SBCL #5 30.84 52,736 689 30.83
Lisp SBCL #3 36.25 32,256 833 36.24
Lisp SBCL #4 9.39 32,256 1531 36.91
Lisp SBCL #2 48.01 23,040 525 48.01
* Racket #2 113.58 76,220 916 113.57
* Racket #3 29.58 77,848 1109 114.62
* Racket 150.36 74,524 655 150.36
n-body
source secs mem gz cpu secs
Lisp SBCL #2 7.80 23,168 1408 7.80
Lisp SBCL 9.25 23,168 1373 9.25
* Racket #2 14.04 77,392 1695 14.04
Racket 40.63 77,432 1503 40.62
spectral-norm
source secs mem gz cpu secs
Lisp SBCL #6 5.33 19,680 512 5.33
Lisp SBCL 5.33 21,376 639 5.33
Lisp SBCL #3 1.44 19,680 893 5.64
Lisp SBCL #9 1.45 19,512 799 5.64
Lisp SBCL #2 1.44 19,680 920 5.64
Lisp SBCL #7 1.46 19,680 769 5.64
* Racket #3 3.89 75,952 639 14.83
* Racket #2 15.09 74,900 539 15.09
Racket 29.66 77,456 452 29.65
mandelbrot
source secs mem gz cpu secs
Lisp SBCL #4 4.18 55,028 2453 16.65
Lisp SBCL #3 9.79 54,784 900 26.14
* Racket #3 34.80 76,104 808 34.79
* Racket #4 10.57 136,084 810 41.41
Racket 49.43 73,952 524 49.43
* Racket #2 51.35 73,820 592 51.35
Lisp SBCL   Bad Output  
fasta
source secs mem gz cpu secs
Lisp SBCL #6 4.48 19,680 1763 4.48
Lisp SBCL #3 5.24 22,912 1592 5.24
* Racket #3 8.10 76,680 1291 8.09
Lisp SBCL #2 8.85 23,296 1628 8.84
Lisp SBCL 9.02 26,112 1430 9.02
Racket 18.49 75,628 1071 18.48
k-nucleotide
source secs mem gz cpu secs
Lisp SBCL #4 15.67 160,384 2292 15.67
Lisp SBCL #5 15.83 160,512 2323 15.83
Lisp SBCL #6 8.76 518,912 2485 31.45
Lisp SBCL 10.77 570,368 2431 33.53
Lisp SBCL #2 44.40 511,488 1291 44.39
Lisp SBCL #3 45.19 511,488 1297 45.18
Racket #4 62.77 936,732 893 62.76
Racket 193.48 2,579,776 554 191.42
reverse-complement
source secs mem gz cpu secs
Lisp SBCL 5.46 1,494,784 911 5.46
* Racket #2 9.06 784,116 1038 9.06
Racket 40.68 2,047,232 560 40.68
Lisp SBCL #2   Failed  
binary-trees
source secs mem gz cpu secs
* Racket #3 6.14 223,504 480 6.14
Lisp SBCL #3 3.00 660,620 938 7.41
Racket #2 9.11 327,096 422 9.11
* Racket #4 5.00 418,536 861 9.56
Lisp SBCL 9.57 643,680 595 9.57
Racket 15.10 543,632 482 15.09
pidigits
source secs mem gz cpu secs
* Racket #2 1.18 79,120 1142 1.18
Lisp SBCL #3 3.32 785,792 499 3.32
Lisp SBCL #4 3.33 793,088 495 3.33
Lisp SBCL #2 5.95 811,008 655 5.95
Racket 10.41 77,992 459 10.41
regex-redux
source secs mem gz cpu secs
Racket 24.06 1,294,636 548 24.06
Racket #2 14.03 1,552,444 736 25.37
Lisp SBCL #4 14.02 1,214,164 1977 29.73
Lisp SBCL

SBCL 2.4.8

Racket

Racket v8.14 [cs].