The Computer Language
22.05 Benchmarks Game

Fastest cpu secs C gcc versus Intel C

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
Intel C #6 1,308 1576 8.30
Intel C #4 1,276 1183 13.09
C gcc #4 964 1183 13.89
Intel C #5 3,228 910 29.33
C gcc #5 1,072 910 29.38
Intel C #3 1,272 567 32.13
Intel C #2 1,484 1557 34.50
Intel C 1,292 508 39.27
C gcc #3 1,016 567 42.18
C gcc 988 508 43.27
C gcc #2 1,140 1557 45.01
n-body
source mem gz cpu
C gcc #9 992 1633 2.12
Intel C #9 1,312 1633 2.20
Intel C #8 8 1391 3.87
C gcc #8 8 1391 4.10
C gcc #4 1,304 1490 4.44
Intel C #4 1,252 1490 4.61
Intel C #3 1,276 1208 5.56
Intel C #6 1,288 1180 5.70
Intel C 1,312 1173 5.70
Intel C #5 1,280 1429 5.70
Intel C #2 1,236 1263 5.93
C gcc #5 1,020 1429 6.10
Intel C #7 1,252 1244 6.71
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
spectral-norm
source mem gz cpu
Intel C #6 3,232 1197 1.56
C gcc #6 1,068 1197 1.57
Intel C 1,452 383 2.67
C gcc #5 1,344 569 2.85
C gcc #4 1,352 1139 2.85
Intel C #4 3,332 1139 2.86
Intel C #3 3,312 463 2.87
Intel C #5 3,384 569 2.87
C gcc 1,248 383 5.38
C gcc #3 1,348 463 5.68
mandelbrot
source mem gz cpu
C gcc #6 31,244 1135 5.12
Intel C #9 30,988 694 5.31
C gcc #8 33,068 782 6.29
Intel C #7 34,552 994 12.90
Intel C #4 32,492 799 13.00
Intel C 28,980 822 13.06
Intel C #3 30,144 763 13.36
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
Intel C #2 1,252 400 22.97
C gcc #2 1,040 400 25.30
Intel C #6   Make Error  
Intel C #8   Bad Output  
pidigits
source mem gz cpu
C gcc 2,648 452 0.73
C gcc #2 2,920 416 0.74
Intel C 2,988 452 0.74
Intel C #2 3,220 416 0.74
regex-redux
source mem gz cpu
C gcc #5 152,220 1397 2.02
Intel C #5 154,568 1397 2.87
C gcc #2 103,084 1115 3.23
C gcc #4 152,056 1230 3.24
Intel C #2 103,556 1115 3.25
C gcc #3 103,540 1266 3.31
Intel C #4 154,464 1230 3.93
Intel C #3 105,896 1266 4.42
fasta
source mem gz cpu
C gcc #9 1,256 1463 0.78
Intel C #9 1,596 1463 0.78
Intel C #5 1,292 1281 1.21
C gcc #5 1,052 1281 1.30
Intel C #8 1,312 1293 2.08
Intel C #4 1,292 1240 2.69
C gcc #8 1,044 1293 2.74
C gcc #6 2,140 1930 2.76
Intel C #6 4,120 1930 2.95
C gcc #4 1,020 1240 3.06
Intel C 1,276 1206 3.08
Intel C #2 4,400 2268 3.25
C gcc #2 2,860 2268 3.25
Intel C #7 4,320 2011 3.27
C gcc #7 2,864 2011 3.28
C gcc 1,016 1206 3.67
Intel C #3 1,312 819 4.13
C gcc #3 972 819 4.49
k-nucleotide
source mem gz cpu
C gcc 130,156 1506 12.31
Intel C 129,392 1506 12.38
reverse-complement
source mem gz cpu
Intel C #7 499,512 1965 0.56
C gcc #7 499,132 1965 0.57
Intel C #8 499,508 1627 0.68
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
Intel C #2 994,524 750 1.56
Intel C #5 994,356 647 1.96
C gcc #4 500,416 709 3.49
Intel C #4 500,740 709 3.74
Intel C #6 751,628 820 4.02
binary-trees
source mem gz cpu
C gcc #2 168,384 809 4.32
C gcc #3 134,068 836 4.71
Intel C #2 169,972 809 5.43
Intel C #3 134,324 836 6.15
Intel C 263,676 654 18.56
C gcc 263,664 654 22.16
C gcc #5 351,304 908 32.02
Intel C #5 351,624 908 32.91
C gcc

11.2.0-19ubuntu1

Intel C

Intel(R) oneAPI DPC++/C++
Version 2022.0.0
Build 20211123