Racket 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 Racket #2 113.80 76,180 916 113.79 Racket #3 30.20 77,300 1109 114.95 Racket 145.19 75,048 655 145.18 Python 3 #6 1,031.38 19,652 391 1,031.34 Python 3 #4 300.68 19,652 960 1,189.39 n-body source secs mem gz cpu secs Racket #2 14.23 78,496 1695 14.23 Racket 40.72 78,124 1503 40.71 Python 3 #2 362.72 19,656 1247 362.70 Python 3 368.32 19,656 1201 368.30 spectral-norm source secs mem gz cpu secs Racket #3 3.94 76,456 639 14.82 Racket #2 15.07 75,004 539 15.07 Racket 29.59 76,644 452 29.59 Python 3 #7 90.77 19,656 425 359.32 Python 3 #6 359.89 19,656 334 359.83 Python 3 #8 98.97 19,656 415 386.79 mandelbrot source secs mem gz cpu secs Racket #3 34.73 76,156 808 34.73 Racket #4 10.56 135,104 810 41.33 Racket 49.27 75,972 524 49.27 Racket #2 51.25 73,732 592 51.25 Python 3 #7 159.49 19,656 698 634.00 Python 3 #2 Timed Out Python 3 #5 Failed pidigits source secs mem gz cpu secs Python 3 #3 1.31 19,784 573 1.31 Racket #2 1.34 79,072 1142 1.34 Python 3 #4 4.73 19,656 348 4.73 Racket 10.38 78,084 459 10.38 Python 3 #5 Failed regex-redux source secs mem gz cpu secs Python 3 #2 1.35 168,092 1411 2.62 Python 3 8.83 432,724 515 16.44 Racket 23.80 1,294,036 548 23.80 Racket #2 13.97 1,545,628 736 25.59 fasta source secs mem gz cpu secs Racket #3 8.07 76,708 1291 8.07 Racket 18.32 74,776 1071 18.31 Python 3 #2 38.53 19,652 1126 38.53 Python 3 #3 38.86 19,780 1007 38.86 Python 3 #5 26.54 827,148 1951 53.26 Python 3 60.37 19,652 823 60.37 k-nucleotide source secs mem gz cpu secs Racket #4 63.67 926,924 893 63.66 Python 3 #3 48.64 262,016 1970 184.81 Racket 200.38 2,438,152 554 198.38 Python 3 #8 87.79 506,880 663 262.44 Python 3 77.21 380,416 614 267.60 reverse-complement source secs mem gz cpu secs Python 3 #3 5.18 509,108 803 5.18 Python 3 #5 4.07 1,500,240 960 7.41 Racket #2 8.99 783,600 1038 8.98 Python 3 #2 10.46 1,788,876 440 10.46 Python 3 10.69 1,987,304 484 10.69 Python 3 #6 7.86 2,484,084 821 11.49 Python 3 #4 13.91 4,003,712 343 13.91 Racket 40.99 2,047,504 560 40.99 binary-trees source secs mem gz cpu secs Racket #3 6.79 300,316 480 6.79 Racket #2 9.00 323,828 422 9.00 Racket #4 4.77 408,068 861 9.38 Racket 15.80 544,844 482 15.79 Python 3 #2 110.47 273,024 344 110.46 Python 3 #4 34.53 277,632 481 126.59 Python 3 #5 35.74 275,456 669 127.53 Python 3 36.16 277,760 597 128.12 Python 3 #3 55.05 672,384 1247 158.56 Racket Racket v8.12 [cs]. Python 3 Python 3.12.2 all Racket programs & measurements all Python 3 programs & measurements