The Computer Language
22.05 Benchmarks Game

Fastest cpu secs Julia versus Python 3

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
Julia #2 211,980 1067 29.46
Julia #3 204,120 886 31.21
Julia 181,932 434 44.01
Python 3 #6 7,432 385 1,279.15
Python 3 #4 45,420 950 1,336.72
n-body
source mem gz cpu
Julia #8 225,844 1111 4.49
Julia #4 202,592 1155 5.95
Julia #3 207,868 1541 7.05
Julia #2 268,512 1078 24.49
Python 3 7,756 1196 575.02
Python 3 #2 8,244 1242 592.71
spectral-norm
source mem gz cpu
Julia #4 188,696 429 3.72
Julia #2 200,160 370 5.12
Python 3 #6 9,332 328 436.79
Python 3 #8 48,336 407 472.82
Python 3 #7 48,400 417 494.32
mandelbrot
source mem gz cpu
Julia #7 236,644 619 5.08
Julia #8 236,112 624 5.24
Julia #6 253,220 562 5.87
Julia #5 272,904 571 5.94
Julia #4 257,796 574 7.69
Julia #3 273,584 579 7.77
Julia 210,712 373 27.06
Python 3 #7 46,192 688 706.10
Python 3 #5   Failed  
Python 3 #2   Timed Out  
pidigits
source mem gz cpu
Python 3 #3 11,968 567 1.13
Julia #3 179,360 506 1.24
Julia #2 190,376 674 1.34
Julia 265,496 275 2.15
Python 3 #4 8,668 342 4.06
Python 3 #2   Bad Output  
regex-redux
source mem gz cpu
Python 3 #2 111,680 1403 2.66
Julia #5 403,608 759 3.12
Julia #4 410,768 766 3.19
Julia #3 502,440 622 3.68
Julia 380,060 408 3.88
Python 3 458,264 512 17.86
fasta
source mem gz cpu
Julia #8 198,752 1082 1.40
Julia #5 219,876 950 2.89
Julia #4 203,872 1049 3.12
Julia #7 459,380 1182 4.92
Julia #6 407,228 1203 5.54
Julia #3 237,412 896 27.78
Python 3 #2 8,184 1121 60.26
Python 3 #3 8,112 1003 60.50
Python 3 8,040 817 70.54
Python 3 #5 837,684 1947 71.74
k-nucleotide
source mem gz cpu
Julia #8 366,728 951 11.31
Julia #7 370,872 1368 18.12
Python 3 #3 252,668 1967 172.53
Julia 1,962,152 695 196.54
Python 3 351,092 607 240.16
Python 3 #8 473,988 655 242.16
reverse-complement
source mem gz cpu
Julia #8 683,748 522 1.71
Julia #9 681,000 449 1.95
Python 3 #2 1,786,488 434 9.38
Python 3 1,979,276 479 9.63
Python 3 #6 1,005,184 814 10.64
Python 3 #4 4,001,684 335 12.31
Julia #2 1,742,028 460 32.14
binary-trees
source mem gz cpu
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
Python 3 #2 270,872 338 148.09
Python 3 #5 273,284 660 172.44
Python 3 #4 456,220 472 176.37
Python 3 282,996 589 178.66
Python 3 #3 669,832 1238 230.73
Julia

julia version 1.7.2

Python 3

Python 3.10.4