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.37 60,716 999 16.63 97% 96% 94% 94%
Python 3 169.87 49,188 417 675.02 100% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Node js 6.80 88,168 1122 26.85 98% 98% 99% 99%
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,112 1268 24.63 5% 0% 100% 0%
Python 3 865.18 8,176 1196 874.96 2% 20% 79% 0%
fannkuch-redux
source secs mem gz busy cpu load
Node js 24.87 57,276 1316 98.67 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.40 65,372 2047 9.80 75% 64% 57% 93%
Python 3 63.55 844,180 1947 129.71 40% 71% 33% 61%
binary-trees
source secs mem gz busy cpu load
Node js 21.79 1,045,424 744 77.02 87% 91% 88% 88%
Python 3 80.30 448,004 589 286.50 95% 87% 87% 88%
reverse-complement
source secs mem gz busy cpu load
Node js 4.85 1,331,224 1307 11.63 53% 74% 66% 46%
Python 3 16.93 1,777,852 434 17.58 78% 21% 4% 0%
k-nucleotide
source secs mem gz busy cpu load
Node js 25.81 398,104 1812 79.25 77% 77% 67% 86%
Python 3 72.24 199,856 1967 275.38 94% 94% 96% 96%
regex-redux
source secs mem gz busy cpu load
Node js 10.46 789,476 668 13.29 16% 28% 74% 8%
Python 3 18.45 457,340 512 37.52 69% 37% 50% 48%
pidigits
source secs mem gz busy cpu load
Node js 12.48 65,080 530 13.42 46% 2% 3% 56%
Python 3 3.47 10,356 386 3.53 1% 1% 0% 100%
Node js

v13.7.0

Python 3

Python 3.8.0