Go versus Python 3 fastest performance 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 Go #3 8.25 10,936 969 32.92 Go 11.83 11,128 900 47.26 Go #2 11.89 12,708 896 47.47 Python 3 #6 913.87 11,080 385 913.83 Python 3 #4 285.20 14,264 950 1,123.47 n-body source secs mem gz cpu secs Go #3 6.36 11,244 1200 6.37 Go 6.55 11,244 1310 6.56 Go #2 6.94 11,244 1215 6.95 Python 3 383.12 11,096 1196 383.11 Python 3 #2 402.59 11,096 1242 402.57 spectral-norm source secs mem gz cpu secs Go 5.31 11,244 411 5.32 Go #4 1.42 11,244 548 5.67 Go #2 1.44 11,244 668 5.67 Python 3 #8 78.36 15,704 407 311.22 Python 3 #6 315.69 11,200 328 315.68 Python 3 #7 89.17 15,516 417 352.71 mandelbrot source secs mem gz cpu secs Go #3 3.73 36,140 894 14.86 Go #4 3.73 36,116 905 14.87 Go 4.92 33,624 823 19.65 Go #2 6.76 33,928 837 26.97 Go #6 6.83 33,632 700 27.22 Python 3 #7 155.28 14,244 688 616.01 Python 3 #2 Timed Out Python 3 #5 Failed pidigits source secs mem gz cpu secs Go #4 1.01 11,244 683 1.02 Python 3 #3 1.25 13,564 567 1.25 Go 1.37 11,244 708 1.38 Python 3 #5 1.39 11,428 363 1.39 Go #3 1.63 11,244 603 1.66 Go #2 1.97 11,244 733 2.00 Go #8 2.46 11,244 720 2.46 Python 3 #4 4.21 11,096 342 4.21 Go #7 4.80 23,844 696 5.31 regex-redux source secs mem gz cpu secs Python 3 #2 1.38 168,144 1403 2.65 Go #5 4.14 302,280 810 6.25 Python 3 8.02 460,684 512 14.90 Go #4 14.80 360,260 829 34.62 Go #3 27.89 368,528 829 67.15 Go 28.35 317,752 741 67.40 fasta source secs mem gz cpu secs Go 3.78 11,128 1053 3.78 Go #3 1.49 11,136 1358 4.10 Go #2 1.26 11,136 1404 4.26 Python 3 #2 49.99 11,088 1121 49.99 Python 3 #3 50.28 11,088 1003 50.27 Python 3 58.84 11,092 817 58.84 Python 3 #5 33.40 827,232 1947 61.49 k-nucleotide source secs mem gz cpu secs Go #7 7.48 166,412 1607 28.68 Go #6 7.96 148,080 1590 29.25 Go #3 8.28 148,412 1722 29.93 Go #4 9.50 142,624 1543 31.55 Python 3 #3 44.13 262,348 1967 165.01 Python 3 58.56 379,464 607 211.98 Python 3 #8 69.21 505,836 655 214.24 reverse-complement source secs mem gz cpu secs Go #2 1.76 814,544 611 1.80 Go #3 1.96 814,352 605 2.00 Go #6 1.33 1,278,596 1338 2.46 Python 3 #3 4.96 508,412 796 4.95 Python 3 #5 3.72 1,500,212 954 6.76 Python 3 8.53 1,986,544 479 8.53 Python 3 #2 8.58 1,788,056 434 8.58 Python 3 #6 6.17 2,484,084 814 9.23 Python 3 #4 12.04 4,002,656 335 12.04 Go #5 Bad Output Go Failed binary-trees source secs mem gz cpu secs Go #6 27.82 410,808 611 28.59 Go #5 14.70 406,544 950 57.87 Go #2 14.69 642,688 666 58.49 Go #3 15.07 342,008 799 58.61 Go #7 33.37 247,824 525 60.85 Go 34.62 236,728 482 61.41 Python 3 #2 104.73 271,980 338 104.72 Python 3 #5 35.33 274,884 660 125.79 Python 3 #4 34.53 276,752 472 125.93 Python 3 35.93 276,952 589 126.44 Python 3 #3 50.99 672,016 1238 142.94 Go go version go1.20 linux/amd64 GOAMD64=v2 Python 3 Python 3.11.1 all Go programs & measurements all Python 3 programs & measurements