The Computer Language
Benchmarks Game

Julia 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
Julia 4.05 218,740 1111 4.36 3% 2% 3% 100%
Python 3 567.56 8,076 1196 570.95 0% 0% 0% 100%
mandelbrot
source secs mem gz busy cpu load
Julia 1.32 227,836 624 4.66 98% 86% 85% 85%
Python 3 163.32 12,080 688 642.00 98% 98% 98% 98%
spectral-norm
source secs mem gz busy cpu load
Julia 1.11 182,068 429 3.74 80% 79% 80% 98%
Python 3 120.99 13,424 407 479.86 99% 99% 99% 99%
fannkuch-redux
source secs mem gz busy cpu load
Julia 7.64 206,244 1067 28.95 95% 95% 94% 95%
Python 3 352.29 12,232 950 1,392.10 97% 99% 100% 99%
fasta
source secs mem gz busy cpu load
Julia 1.12 193,924 1082 1.40 10% 8% 99% 8%
Python 3 37.32 846,264 1947 71.03 10% 67% 83% 30%
k-nucleotide
source secs mem gz busy cpu load
Julia 5.12 374,876 951 11.36 63% 72% 38% 49%
Python 3 46.28 241,108 1967 176.42 94% 97% 95% 96%
binary-trees
source secs mem gz busy cpu load
Julia 7.43 482,620 634 23.65 69% 100% 78% 72%
Python 3 51.07 278,324 589 178.28 85% 86% 93% 85%
reverse-complement
source secs mem gz busy cpu load
Julia 1.60 677,796 522 1.91 6% 6% 100% 9%
Python 3 7.20 1,005,184 814 10.75 20% 53% 48% 29%
pidigits
source secs mem gz busy cpu load
Julia 0.97 172,908 506 1.24 10% 98% 10% 9%
Python 3 1.28 12,024 567 1.29 0% 1% 100% 0%
regex-redux
source secs mem gz busy cpu load
Julia 1.68 394,324 759 3.06 99% 7% 5% 71%
Python 3 1.36 111,852 1403 2.64 32% 40% 33% 88%
Julia

julia version 1.6.0

Python 3

Python 3.9.2