The Computer Language
Benchmarks Game

Julia versus Python 3 fastest programs

Always look at the source code.

These are only the fastest programs. 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 3.99 212,216 1112 4.26 99% 3% 2% 3%
Python 3 545.25 8,160 1196 558.88 1% 1% 1% 100%
spectral-norm
source secs mem gz busy cpu load
Julia 1.22 181,480 521 3.85 73% 99% 72% 71%
Python 3 116.23 50,080 407 463.55 100% 100% 100% 100%
mandelbrot
source secs mem gz busy cpu load
Julia 1.83 229,236 619 6.65 98% 88% 89% 89%
Python 3 170.25 47,568 688 680.12 100% 100% 100% 100%
fannkuch-redux
source secs mem gz busy cpu load
Julia 7.94 197,768 1067 29.99 94% 95% 94% 95%
Python 3 366.43 47,608 950 1,448.16 100% 99% 100% 97%
fasta
source secs mem gz busy cpu load
Julia 1.70 349,332 1182 4.91 61% 75% 78% 75%
Python 3 38.07 845,888 1947 75.85 23% 63% 66% 47%
k-nucleotide
source secs mem gz busy cpu load
Julia 4.76 360,120 945 10.77 78% 56% 38% 53%
Python 3 48.51 134,372 1967 185.66 94% 100% 94% 95%
binary-trees
source secs mem gz busy cpu load
Julia 9.61 603,784 372 30.05 73% 80% 85% 75%
Python 3 48.45 448,980 589 171.58 86% 86% 87% 94%
reverse-complement
source secs mem gz busy cpu load
Julia 1.47 671,232 522 1.76 8% 7% 97% 8%
Python 3 7.15 1,005,204 814 10.62 81% 1% 47% 20%
pidigits
source secs mem gz busy cpu load
Julia 1.00 167,828 506 1.29 9% 11% 10% 99%
Python 3 1.29 11,976 567 1.30 0% 100% 1% 0%
regex-redux
source secs mem gz busy cpu load
Julia 1.75 385,152 759 3.09 66% 7% 98% 6%
Python 3 1.37 404,320 1403 2.65 32% 41% 33% 88%
Julia

julia version 1.5.0

Python 3

Python 3.8.3