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.90 40,688 627 10.89 93% 93% 93% 97%
Python 3 118.40 22,912 407 470.86 99% 99% 99% 100%
n-body
source secs mem gz busy cpu load
Racket 25.38 38,392 1689 25.92 100% 0% 1% 1%
Python 3 586.17 8,012 1196 589.84 0% 0% 0% 100%
mandelbrot
source secs mem gz busy cpu load
Racket 13.74 120,776 801 52.59 96% 96% 96% 95%
Python 3 172.58 12,216 688 689.62 100% 100% 100% 100%
binary-trees
source secs mem gz busy cpu load
Racket 6.87 987,244 853 17.30 80% 53% 41% 77%
Python 3 49.35 278,628 589 174.26 95% 86% 86% 86%
fannkuch-redux
source secs mem gz busy cpu load
Racket 51.89 35,336 1101 205.05 99% 100% 100% 96%
Python 3 367.49 12,288 950 1,454.68 100% 98% 99% 98%
fasta
source secs mem gz busy cpu load
Racket 9.60 40,052 1280 9.90 1% 2% 100% 1%
Python 3 39.10 846,628 1947 70.52 43% 8% 61% 69%
pidigits
source secs mem gz busy cpu load
Racket 1.02 36,924 1136 1.04 99% 3% 0% 0%
Python 3 1.28 12,336 567 1.30 1% 0% 1% 100%
k-nucleotide
source secs mem gz busy cpu load
Racket 52.28 417,576 885 53.32 0% 1% 100% 1%
Python 3 46.37 239,472 1967 176.69 94% 95% 98% 94%
reverse-complement
source secs mem gz busy cpu load
Racket 9.80 566,208 1030 10.18 1% 1% 2% 100%
Python 3 7.16 1,005,968 814 10.65 20% 53% 47% 29%
regex-redux
source secs mem gz busy cpu load
Racket 15.65 1,256,208 729 38.29 78% 65% 2% 99%
Python 3 1.36 112,052 1403 2.64 40% 88% 32% 33%
Racket

Welcome to Racket v7.9 [bc].

Python 3

Python 3.9.0