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.20 67,932 1689 14.28 0% 0% 0% 100%
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,096 627 14.74 97% 96% 96% 99%
Python 3 120.99 13,424 407 479.86 99% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Racket 10.45 127,004 801 41.23 98% 98% 98% 100%
Python 3 163.32 12,080 688 642.00 98% 98% 98% 98%
binary-trees
source secs mem gz busy cpu load
Racket 4.31 557,636 853 8.76 47% 48% 66% 42%
Python 3 51.07 278,324 589 178.28 85% 86% 93% 85%
fannkuch-redux
source secs mem gz busy cpu load
Racket 31.07 68,492 1101 120.19 100% 91% 97% 99%
Python 3 352.29 12,232 950 1,392.10 97% 99% 100% 99%
fasta
source secs mem gz busy cpu load
Racket 7.92 67,644 1280 7.93 0% 100% 0% 0%
Python 3 37.32 846,264 1947 71.03 10% 67% 83% 30%
pidigits
source secs mem gz busy cpu load
Racket 1.17 68,212 1136 1.18 0% 0% 1% 100%
Python 3 1.28 12,024 567 1.29 0% 1% 100% 0%
reverse-complement
source secs mem gz busy cpu load
Racket 8.71 703,456 1030 8.74 0% 0% 0% 100%
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.29 989,872 885 66.75 0% 0% 38% 62%
Python 3 46.28 241,108 1967 176.42 94% 97% 95% 96%
regex-redux
source secs mem gz busy cpu load
Racket 9.34 1,291,044 729 19.78 51% 45% 64% 52%
Python 3 1.36 111,852 1403 2.64 32% 40% 33% 88%
Racket

Welcome to Racket v8.1 [cs].

Python 3

Python 3.9.2