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 14.32 70,160 1689 14.37 0% 0% 100% 0%
Python 3 567.56 8,076 1196 570.95 0% 0% 0% 100%
spectral-norm
source secs mem gz busy cpu load
Racket 3.80 66,688 627 14.75 97% 99% 96% 96%
Python 3 120.99 13,424 407 479.86 99% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Racket 10.44 126,440 801 41.22 98% 98% 98% 100%
Python 3 163.32 12,080 688 642.00 98% 98% 98% 98%
fannkuch-redux
source secs mem gz busy cpu load
Racket 32.01 70,960 1101 119.74 89% 93% 100% 92%
Python 3 352.29 12,232 950 1,392.10 97% 99% 100% 99%
binary-trees
source secs mem gz busy cpu load
Racket 4.81 555,172 853 9.55 47% 46% 37% 69%
Python 3 48.03 462,732 472 174.44 89% 97% 88% 89%
fasta
source secs mem gz busy cpu load
Racket 7.98 67,896 1280 8.07 0% 100% 0% 1%
Python 3 37.32 846,264 1947 71.03 10% 67% 83% 30%
pidigits
source secs mem gz busy cpu load
Racket 1.18 68,656 1136 1.19 0% 100% 1% 0%
Python 3 1.28 12,024 567 1.29 0% 1% 100% 0%
reverse-complement
source secs mem gz busy cpu load
Racket 8.75 697,776 1030 9.00 0% 100% 0% 2%
Python 3 7.20 1,005,184 814 10.75 20% 53% 48% 29%
k-nucleotide
source secs mem gz busy cpu load
Racket 66.89 989,352 885 67.26 0% 0% 0% 100%
Python 3 46.28 241,108 1967 176.42 94% 97% 95% 96%
regex-redux
source secs mem gz busy cpu load
Racket 12.48 1,787,916 729 23.03 45% 2% 100% 38%
Python 3 1.36 111,852 1403 2.64 32% 40% 33% 88%
Racket

Welcome to Racket v8.2 [cs].

Python 3

Python 3.9.2