The Computer Language
Benchmarks Game

Node js 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.

spectral-norm
source secs mem gz busy cpu load
Node js 4.29 62,304 999 16.47 96% 96% 96% 97%
Python 3 169.87 49,188 417 675.02 100% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Node js 6.73 87,032 1122 26.56 99% 99% 98% 98%
Python 3 259.50 48,192 688 1,036.70 100% 100% 100% 100%
n-body
source secs mem gz busy cpu load
Node js 23.25 35,456 1268 24.04 100% 0% 2% 1%
Python 3 865.18 8,176 1196 874.96 2% 20% 79% 0%
fannkuch-redux
source secs mem gz busy cpu load
Node js 17.75 58,932 1313 70.26 99% 99% 99% 99%
Python 3 534.40 47,236 950 2,104.05 99% 97% 99% 99%
fasta
source secs mem gz busy cpu load
Node js 3.38 66,344 2047 9.63 68% 52% 85% 80%
Python 3 63.55 844,180 1947 129.71 40% 71% 33% 61%
reverse-complement
source secs mem gz busy cpu load
Node js 3.93 1,473,680 1481 8.55 54% 71% 46% 47%
Python 3 16.93 1,777,852 434 17.58 78% 21% 4% 0%
binary-trees
source secs mem gz busy cpu load
Node js 21.95 1,056,376 744 76.94 85% 89% 88% 88%
Python 3 80.30 448,004 589 286.50 95% 87% 87% 88%
k-nucleotide
source secs mem gz busy cpu load
Node js 25.55 396,948 1812 78.03 78% 72% 85% 71%
Python 3 72.24 199,856 1967 275.38 94% 94% 96% 96%
pidigits
source secs mem gz busy cpu load
Node js 2.57 36,392 599 2.65 0% 2% 100% 1%
Python 3 2.38 12,120 567 2.44 0% 3% 1% 98%
regex-redux
source secs mem gz busy cpu load
Node js 10.53 792,316 668 13.01 12% 21% 55% 36%
Python 3 2.12 111,692 1403 4.20 35% 41% 88% 34%
Node js

v13.9.0

Python 3

Python 3.8.0