The Computer Language
Benchmarks Game

Racket versus Python 3 fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

n-body
source secs mem gz busy cpu load
Racket 15.85 69,492 1689 15.91 0% 0% 100% 0%
Python 3 586.17 8,012 1196 589.84 0% 0% 0% 100%
spectral-norm
source secs mem gz busy cpu load
Racket 3.90 66,500 627 15.15 100% 96% 96% 96%
Python 3 118.40 22,912 407 470.86 99% 99% 99% 100%
mandelbrot
source secs mem gz busy cpu load
Racket 12.96 132,744 801 51.28 100% 99% 99% 99%
Python 3 172.58 12,216 688 689.62 100% 100% 100% 100%
binary-trees
source secs mem gz busy cpu load
Racket 4.35 562,044 853 8.92 44% 47% 64% 50%
Python 3 49.35 278,628 589 174.26 95% 86% 86% 86%
fannkuch-redux
source secs mem gz busy cpu load
Racket 32.59 68,152 1101 122.69 90% 93% 94% 100%
Python 3 367.49 12,288 950 1,454.68 100% 98% 99% 98%
fasta
source secs mem gz busy cpu load
Racket 7.94 69,148 1280 7.97 0% 0% 0% 100%
Python 3 39.10 846,628 1947 70.52 43% 8% 61% 69%
pidigits
source secs mem gz busy cpu load
Racket 1.18 69,132 1136 1.20 0% 1% 100% 1%
Python 3 1.28 12,336 567 1.30 1% 0% 1% 100%
reverse-complement
source secs mem gz busy cpu load
Racket 8.91 719,100 1030 8.96 0% 100% 0% 0%
Python 3 7.16 1,005,968 814 10.65 20% 53% 47% 29%
k-nucleotide
source secs mem gz busy cpu load
Racket 67.38 992,136 885 67.81 0% 100% 0% 0%
Python 3 46.37 239,472 1967 176.69 94% 95% 98% 94%
regex-redux
source secs mem gz busy cpu load
Racket 9.37 1,293,512 729 19.99 62% 62% 22% 68%
Python 3 1.36 112,052 1403 2.64 40% 88% 32% 33%
Racket

Welcome to Racket v8.0 [cs].

Python 3

Python 3.9.0