The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Julia 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
Julia #2 211,980 1067 29.46
Julia #3 204,120 886 31.21
C gcc #3 1,016 567 42.18
C gcc 988 508 43.27
Julia 181,932 434 44.01
C gcc #2 1,140 1557 45.01
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
Julia #8 225,844 1111 4.49
Julia #4 202,592 1155 5.95
C gcc #5 1,020 1429 6.10
C gcc #7 1,300 1244 6.79
Julia #3 207,868 1541 7.05
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
Julia #2 268,512 1078 24.49
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
Julia #4 188,696 429 3.72
Julia #2 200,160 370 5.12
C gcc 1,248 383 5.38
C gcc #3 1,348 463 5.68
mandelbrot
source mem gz cpu
Julia #7 236,644 619 5.08
C gcc #6 31,244 1135 5.12
Julia #8 236,112 624 5.24
Julia #6 253,220 562 5.87
Julia #5 272,904 571 5.94
C gcc #8 33,068 782 6.29
Julia #4 257,796 574 7.69
Julia #3 273,584 579 7.77
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
C gcc #2 1,040 400 25.30
Julia 210,712 373 27.06
pidigits
source mem gz cpu
C gcc 2,648 452 0.73
C gcc #2 2,920 416 0.74
Julia #3 179,360 506 1.24
Julia #2 190,376 674 1.34
Julia 265,496 275 2.15
regex-redux
source mem gz cpu
C gcc #5 152,220 1397 2.02
Julia #5 403,608 759 3.12
Julia #4 410,768 766 3.19
C gcc #2 103,084 1115 3.23
C gcc #4 152,056 1230 3.24
C gcc #3 103,540 1266 3.31
Julia #3 502,440 622 3.68
Julia 380,060 408 3.88
fasta
source mem gz cpu
C gcc #9 1,256 1463 0.78
C gcc #5 1,052 1281 1.30
Julia #8 198,752 1082 1.40
C gcc #8 1,044 1293 2.74
C gcc #6 2,140 1930 2.76
Julia #5 219,876 950 2.89
C gcc #4 1,020 1240 3.06
Julia #4 203,872 1049 3.12
C gcc #2 2,860 2268 3.25
C gcc #7 2,864 2011 3.28
C gcc 1,016 1206 3.67
C gcc #3 972 819 4.49
Julia #7 459,380 1182 4.92
Julia #6 407,228 1203 5.54
Julia #3 237,412 896 27.78
k-nucleotide
source mem gz cpu
Julia #8 366,728 951 11.31
C gcc 130,156 1506 12.31
Julia #7 370,872 1368 18.12
Julia 1,962,152 695 196.54
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
Julia #8 683,748 522 1.71
Julia #9 681,000 449 1.95
C gcc #4 500,416 709 3.49
Julia #2 1,742,028 460 32.14
binary-trees
source mem gz cpu
C gcc #2 168,384 809 4.32
C gcc #3 134,068 836 4.71
C gcc 263,664 654 22.16
C gcc #5 351,304 908 32.02
Julia #2 600,804 423 37.16
Julia #4 495,284 372 47.16
Julia #3 608,728 634 48.85
Julia #5 665,480 390 79.14
Julia

julia version 1.7.2

C gcc

11.2.0-19ubuntu1