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.00 212,108 1112 4.30 99% 3% 3% 3%
Python 3 586.17 8,012 1196 589.84 0% 0% 0% 100%
mandelbrot
source secs mem gz busy cpu load
Julia 1.38 235,276 621 4.78 83% 83% 83% 99%
Python 3 172.58 12,216 688 689.62 100% 100% 100% 100%
spectral-norm
source secs mem gz busy cpu load
Julia 1.23 180,836 521 3.87 73% 71% 91% 80%
Python 3 118.40 22,912 407 470.86 99% 99% 99% 100%
fannkuch-redux
source secs mem gz busy cpu load
Julia 7.96 197,292 1067 30.06 94% 95% 94% 94%
Python 3 367.49 12,288 950 1,454.68 100% 98% 99% 98%
fasta
source secs mem gz busy cpu load
Julia 1.72 354,912 1182 4.90 79% 75% 63% 69%
Python 3 39.10 846,628 1947 70.52 43% 8% 61% 69%
k-nucleotide
source secs mem gz busy cpu load
Julia 4.66 360,436 945 10.68 39% 52% 53% 85%
Python 3 46.37 239,472 1967 176.69 94% 95% 98% 94%
binary-trees
source secs mem gz busy cpu load
Julia 9.67 604,312 372 29.97 75% 84% 72% 78%
Python 3 49.35 278,628 589 174.26 95% 86% 86% 86%
reverse-complement
source secs mem gz busy cpu load
Julia 1.50 671,028 522 1.77 7% 9% 96% 7%
Python 3 7.16 1,005,968 814 10.65 20% 53% 47% 29%
pidigits
source secs mem gz busy cpu load
Julia 1.00 168,088 506 1.31 11% 99% 11% 10%
Python 3 1.28 12,336 567 1.30 1% 0% 1% 100%
regex-redux
source secs mem gz busy cpu load
Julia 1.75 384,588 759 3.10 6% 67% 93% 12%
Python 3 1.36 112,052 1403 2.64 40% 88% 32% 33%
Julia

julia version 1.5.0

Python 3

Python 3.9.0