The Computer Language
Benchmarks Game

Python 3 versus Node js 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.

regex-redux
source secs mem gz busy cpu load
Python 3 1.36 112,052 1403 2.64 40% 88% 32% 33%
Node js 4.76 1,152,392 668 5.82 1% 1% 28% 91%
pidigits
source secs mem gz busy cpu load
Python 3 1.28 12,336 567 1.30 1% 0% 1% 100%
Node js 1.16 34,980 599 1.21 1% 1% 99% 3%
k-nucleotide
source secs mem gz busy cpu load
Python 3 46.37 239,472 1967 176.69 94% 95% 98% 94%
Node js 15.48 395,304 1812 42.72 77% 92% 61% 46%
reverse-complement
source secs mem gz busy cpu load
Python 3 7.16 1,005,968 814 10.65 20% 53% 47% 29%
Node js 2.12 1,525,056 1481 4.38 48% 27% 70% 62%
binary-trees
source secs mem gz busy cpu load
Python 3 49.35 278,628 589 174.26 95% 86% 86% 86%
Node js 7.34 1,262,364 744 22.41 75% 84% 72% 75%
fasta
source secs mem gz busy cpu load
Python 3 39.10 846,628 1947 70.52 43% 8% 61% 69%
Node js 2.02 67,936 2047 6.27 78% 81% 75% 75%
fannkuch-redux
source secs mem gz busy cpu load
Python 3 367.49 12,288 950 1,454.68 100% 98% 99% 98%
Node js 11.89 61,216 1313 45.33 96% 94% 96% 94%
mandelbrot
source secs mem gz busy cpu load
Python 3 172.58 12,216 688 689.62 100% 100% 100% 100%
Node js 4.03 89,888 1122 15.89 99% 98% 98% 99%
spectral-norm
source secs mem gz busy cpu load
Python 3 118.40 22,912 407 470.86 99% 99% 99% 100%
Node js 1.84 61,080 999 6.15 84% 81% 86% 83%
n-body
source secs mem gz busy cpu load
Python 3 586.17 8,012 1196 589.84 0% 0% 0% 100%
Node js 8.36 34,332 1268 8.37 0% 0% 0% 100%
Python 3

Python 3.9.0

Node js

v15.2.1