The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Lisp SBCL versus C gcc

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 cpu seconds, less gz source code.

fannkuch-redux
source mem gz cpu
C gcc #6 1,044 1576 8.26
C gcc #4 964 1183 13.89
C gcc #5 1,072 910 29.38
Lisp SBCL #5 65,096 681 30.55
Lisp SBCL #3 41,388 826 36.45
Lisp SBCL #4 41,844 1527 37.67
C gcc #3 1,016 567 42.18
C gcc 988 508 43.27
C gcc #2 1,140 1557 45.01
Lisp SBCL #2 26,792 517 47.14
n-body
source mem gz cpu
C gcc #9 992 1633 2.12
C gcc #8 8 1391 4.10
C gcc #4 1,304 1490 4.44
C gcc #5 1,020 1429 6.10
C gcc #7 1,300 1244 6.79
C gcc #2 1,264 1263 7.19
C gcc #6 1,304 1180 7.21
C gcc #3 1,304 1208 7.23
C gcc 1,264 1173 7.55
Lisp SBCL #2 26,588 1403 7.85
Lisp SBCL 26,624 1368 13.19
spectral-norm
source mem gz cpu
C gcc #6 1,068 1197 1.57
C gcc #5 1,344 569 2.85
C gcc #4 1,352 1139 2.85
Lisp SBCL #6 25,380 505 5.33
Lisp SBCL 29,364 631 5.33
C gcc 1,248 383 5.38
C gcc #3 1,348 463 5.68
Lisp SBCL #7 24,144 762 5.69
Lisp SBCL #3 24,168 890 5.69
Lisp SBCL #2 24,188 915 5.69
Lisp SBCL #8 24,160 791 5.69
mandelbrot
source mem gz cpu
C gcc #6 31,244 1135 5.12
C gcc #8 33,068 782 6.29
C gcc #4 32,704 799 13.81
C gcc #7 33,108 994 13.87
C gcc 29,692 822 13.91
C gcc #3 29,840 763 13.99
C gcc #9 32,904 694 16.03
Lisp SBCL 54,992 2473 16.51
Lisp SBCL #4 54,952 2447 16.64
C gcc #2 1,040 400 25.30
Lisp SBCL #3 57,936 894 29.09
pidigits
source mem gz cpu
C gcc 2,648 452 0.73
C gcc #2 2,920 416 0.74
Lisp SBCL #3 798,484 493 3.48
Lisp SBCL #4 792,944 489 3.49
Lisp SBCL #2 830,068 648 6.39
regex-redux
source mem gz cpu
C gcc #5 152,220 1397 2.02
C gcc #2 103,084 1115 3.23
C gcc #4 152,056 1230 3.24
C gcc #3 103,540 1266 3.31
Lisp SBCL #4 1,074,864 1972 29.92
fasta
source mem gz cpu
C gcc #9 1,256 1463 0.78
C gcc #5 1,052 1281 1.30
C gcc #8 1,044 1293 2.74
C gcc #6 2,140 1930 2.76
C gcc #4 1,020 1240 3.06
C gcc #2 2,860 2268 3.25
C gcc #7 2,864 2011 3.28
C gcc 1,016 1206 3.67
Lisp SBCL #6 23,504 1757 4.30
C gcc #3 972 819 4.49
Lisp SBCL #3 26,632 1587 5.99
Lisp SBCL #2 26,640 1622 9.33
Lisp SBCL 28,980 1424 9.47
k-nucleotide
source mem gz cpu
C gcc 130,156 1506 12.31
Lisp SBCL #5 162,116 2320 16.50
Lisp SBCL #4 162,432 2291 16.86
Lisp SBCL #6 521,168 2479 38.59
Lisp SBCL 572,680 2424 44.54
Lisp SBCL #3 513,868 1290 54.80
Lisp SBCL #2 513,940 1284 55.65
reverse-complement
source mem gz cpu
C gcc #7 499,132 1965 0.57
C gcc #8 499,184 1627 0.77
C gcc #6 688,416 820 1.27
C gcc #5 994,088 647 1.42
C gcc #2 994,152 750 1.45
C gcc #4 500,416 709 3.49
Lisp SBCL 1,499,284 904 5.53
Lisp SBCL #2   Bad Output  
binary-trees
source mem gz cpu
C gcc #2 168,384 809 4.32
C gcc #3 134,068 836 4.71
Lisp SBCL #3 673,772 932 6.77
Lisp SBCL 654,568 589 9.23
C gcc 263,664 654 22.16
C gcc #5 351,304 908 32.02
Lisp SBCL

SBCL 2.2.4

C gcc

11.2.0-19ubuntu1