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 2.12 111,692 1403 4.20 35% 41% 88% 34%
Node js 9.96 757,188 668 12.06 8% 45% 9% 59%
pidigits
source secs mem gz busy cpu load
Python 3 2.38 12,120 567 2.44 0% 3% 1% 98%
Node js 2.58 36,004 599 2.67 1% 1% 100% 2%
k-nucleotide
source secs mem gz busy cpu load
Python 3 72.24 199,856 1967 275.38 94% 94% 96% 96%
Node js 26.33 396,388 1812 79.49 94% 59% 79% 70%
reverse-complement
source secs mem gz busy cpu load
Python 3 16.93 1,777,852 434 17.58 78% 21% 4% 0%
Node js 4.15 1,472,268 1481 8.65 34% 63% 35% 77%
binary-trees
source secs mem gz busy cpu load
Python 3 80.30 448,004 589 286.50 95% 87% 87% 88%
Node js 17.71 1,053,736 744 63.60 90% 89% 89% 91%
fasta
source secs mem gz busy cpu load
Python 3 63.55 844,180 1947 129.71 40% 71% 33% 61%
Node js 3.42 68,068 2047 9.82 74% 89% 71% 54%
fannkuch-redux
source secs mem gz busy cpu load
Python 3 534.40 47,236 950 2,104.05 99% 97% 99% 99%
Node js 17.80 58,292 1313 70.33 99% 99% 99% 98%
n-body
source secs mem gz busy cpu load
Python 3 865.18 8,176 1196 874.96 2% 20% 79% 0%
Node js 23.25 35,092 1268 23.48 0% 0% 1% 100%
mandelbrot
source secs mem gz busy cpu load
Python 3 259.50 48,192 688 1,036.70 100% 100% 100% 100%
Node js 6.72 88,548 1122 26.50 98% 99% 99% 98%
spectral-norm
source secs mem gz busy cpu load
Python 3 169.87 49,188 417 675.02 100% 99% 99% 99%
Node js 4.29 62,616 999 16.51 96% 96% 96% 97%
Python 3

Python 3.8.0

Node js

v13.12.0