The Computer Language
Benchmarks Game

Racket versus Python 3 fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

spectral-norm
source secs mem gz busy cpu load
Racket 2.86 38,512 627 10.88 94% 94% 94% 98%
Python 3 116.23 50,080 407 463.55 100% 100% 100% 100%
n-body
source secs mem gz busy cpu load
Racket 25.31 37,220 1689 25.41 100% 0% 0% 0%
Python 3 545.25 8,160 1196 558.88 1% 1% 1% 100%
mandelbrot
source secs mem gz busy cpu load
Racket 13.69 122,236 801 52.31 95% 95% 96% 95%
Python 3 170.25 47,568 688 680.12 100% 100% 100% 100%
fannkuch-redux
source secs mem gz busy cpu load
Racket 51.50 35,380 1101 203.69 99% 100% 100% 96%
Python 3 366.43 47,608 950 1,448.16 100% 99% 100% 97%
binary-trees
source secs mem gz busy cpu load
Racket 6.81 993,172 853 16.72 80% 38% 51% 76%
Python 3 48.45 448,980 589 171.58 86% 86% 87% 94%
fasta
source secs mem gz busy cpu load
Racket 9.56 37,892 1280 10.25 5% 2% 0% 100%
Python 3 38.07 845,888 1947 75.85 23% 63% 66% 47%
pidigits
source secs mem gz busy cpu load
Racket 1.16 36,792 1136 1.18 0% 0% 1% 100%
Python 3 1.29 11,976 567 1.30 0% 100% 1% 0%
k-nucleotide
source secs mem gz busy cpu load
Racket 52.74 419,632 885 53.08 0% 0% 100% 0%
Python 3 48.51 134,372 1967 185.66 94% 100% 94% 95%
reverse-complement
source secs mem gz busy cpu load
Racket 9.76 567,428 1030 9.80 0% 0% 0% 100%
Python 3 7.15 1,005,204 814 10.62 81% 1% 47% 20%
regex-redux
source secs mem gz busy cpu load
Racket 15.44 1,243,324 729 34.70 56% 69% 1% 99%
Python 3 1.37 404,320 1403 2.65 32% 41% 33% 88%
Racket

Welcome to Racket v7.8.

Python 3

Python 3.8.3