The Computer Language
24.11 Benchmarks Game

Intel C versus C clang 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
* C clang #6 2.24 19,772 1582 8.86
* Intel C #6 2.24 19,684 1582 8.89
* C clang #4 13.37 19,772 1190 13.37
* Intel C #4 13.38 19,684 1190 13.38
Intel C #5 7.75 19,684 917 30.71
C clang #5 8.09 19,772 917 31.94
* C clang #2 8.67 19,772 1563 34.02
C clang #3 34.16 19,772 574 34.15
* Intel C #2 8.72 19,940 1563 34.15
Intel C #3 34.58 19,684 574 34.58
C clang #8 36.39 19,492 483 36.38
C clang 36.51 19,772 514 36.50
Intel C #8 42.86 19,492 483 42.85
Intel C 43.31 19,684 514 43.31
n-body
source secs mem gz cpu secs
* Intel C #9 2.03 19,684 1639 2.03
* C clang #9 2.20 19,772 1639 2.20
* C clang #5 4.86 19,772 1436 4.86
* Intel C #4 4.92 19,684 1496 4.92
C clang #6 5.16 19,772 1186 5.16
C clang 5.37 19,772 1179 5.37
C clang #2 5.42 19,772 1270 5.42
Intel C #7 5.54 19,684 1250 5.54
* Intel C #5 5.56 19,684 1436 5.56
* C clang #4 5.60 19,772 1398 5.59
C clang #8 5.72 19,492 1193 5.72
Intel C #8 6.07 19,492 1193 6.07
C clang #3 6.12 19,772 1214 6.12
Intel C #3 6.17 19,684 1214 6.17
Intel C 6.21 19,684 1179 6.21
Intel C #6 6.22 19,684 1186 6.22
Intel C #2 6.24 19,684 1270 6.24
C clang #7 6.77 19,772 1250 6.77
spectral-norm
source secs mem gz cpu secs
* C clang #6 0.38 19,772 1203 1.52
* Intel C #6 0.39 20,724 1203 1.54
Intel C #8 2.67 19,316 389 2.67
* C clang #4 0.72 19,772 1145 2.86
* C clang #2 0.72 19,772 941 2.87
* Intel C #5 0.72 19,700 576 2.87
* C clang #5 0.72 19,772 576 2.88
* Intel C #7 0.73 19,700 906 2.88
* Intel C #4 0.73 21,012 1145 2.89
Intel C #3 0.73 19,700 470 2.89
C clang #8 5.40 19,772 389 5.40
C clang #3 1.46 19,772 470 5.77
* C clang #7 1.82 19,772 906 7.24
* Intel C #2   Make Error  
mandelbrot
source secs mem gz cpu secs
C clang #9 1.22 34,332 700 4.85
C clang #5 1.53 34,864 788 6.09
Intel C #9 1.82 34,688 700 7.25
* Intel C #7 3.12 34,560 1000 12.39
* Intel C #4 3.21 34,560 805 12.78
* Intel C 3.25 33,024 828 12.97
* Intel C #3 3.31 33,024 769 13.21
* C clang #4 3.47 34,328 805 13.82
* C clang 3.49 33,172 828 13.93
* C clang #7 3.53 34,216 1000 14.00
* C clang #3 3.55 33,108 769 14.15
Intel C #8 23.96 19,496 412 23.96
C clang #8 25.27 19,496 412 25.27
Intel C #5   Bad Output  
* C clang #6   Make Error  
* Intel C #6   Make Error  
fasta
source secs mem gz cpu secs
C clang #3 0.78 19,772 1469 0.78
Intel C #3 0.83 19,772 1469 0.83
Intel C #5 1.05 19,772 1286 1.05
C clang #5 1.20 19,772 1286 1.20
Intel C #2 1.43 19,616 1299 1.43
C clang #2 2.43 19,616 1299 2.43
Intel C 2.92 19,772 1213 2.92
Intel C #6 1.03 19,772 1936 3.03
C clang #6 1.03 19,772 1936 3.03
Intel C #7 0.82 19,616 2276 3.26
C clang #7 0.82 19,772 2276 3.27
C clang 3.46 19,772 1213 3.46
Intel C #8 4.20 19,796 825 4.20
C clang #8 4.61 19,616 825 4.60
Intel C #4   Make Error  
C clang #4   Make Error  
k-nucleotide
source secs mem gz cpu secs
Intel C 6.17 129,600 1512 13.43
C clang 6.30 129,228 1512 13.92
reverse-complement
source secs mem gz cpu secs
* Intel C #7 0.44 500,272 1899 0.60
* C clang #7 0.45 499,996 1899 0.63
C clang #9 0.46 499,976 1551 0.70
Intel C #9 0.47 500,144 1551 0.72
Intel C #2 1.16 994,816 757 1.68
C clang #2 1.16 994,536 757 1.69
C clang #5 2.08 994,108 654 2.07
Intel C #5 2.13 994,560 654 2.13
* C clang #4 3.74 500,452 716 3.74
* Intel C #4 3.79 500,864 716 3.78
C clang #6 1.03 703,416 828 4.07
Intel C #6 1.06 752,984 828 4.16
binary-trees
source secs mem gz cpu secs
Intel C #2 1.66 170,496 816 5.36
C clang #2 1.66 170,236 816 5.36
C clang #3 1.89 134,272 842 5.88
Intel C #3 2.00 134,528 842 6.12
C clang 17.79 264,064 660 17.79
Intel C 17.93 264,064 660 17.93
Intel C #8 19.46 285,952 607 19.46
C clang #8 19.63 285,536 607 19.62
C clang #5 9.25 351,328 914 33.65
Intel C #5 9.37 351,488 914 34.02
pidigits
source secs mem gz cpu secs
C clang #2 0.74 19,772 422 0.74
C clang 0.74 19,772 459 0.74
Intel C #2 0.82 19,812 422 0.82
Intel C 0.88 19,844 459 0.88
regex-redux
source secs mem gz cpu secs
C clang #5 0.82 154,568 1403 2.82
Intel C #5 0.89 154,780 1403 2.89
Intel C #2 3.20 103,680 1121 3.20
C clang #2 3.22 103,364 1121 3.22
C clang #4 0.98 154,488 1237 3.82
Intel C #4 1.04 154,628 1237 4.02
C clang #3 1.75 105,848 1273 4.31
Intel C #3 1.83 106,240 1273 4.40
Intel C

Intel(R) oneAPI DPC++/C++ Compiler
2024.1.0.20240308

C clang

Ubuntu clang version 18.1.8 (11)