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.37 404,320 1403 2.65 32% 41% 33% 88%
Node js 4.67 1,115,744 668 5.76 2% 2% 29% 91%
pidigits
source secs mem gz busy cpu load
Python 3 1.29 11,976 567 1.30 0% 100% 1% 0%
Node js 1.30 36,036 599 1.32 0% 1% 100% 1%
k-nucleotide
source secs mem gz busy cpu load
Python 3 48.51 134,372 1967 185.66 94% 100% 94% 95%
Node js 15.41 392,344 1812 42.69 45% 93% 61% 78%
reverse-complement
source secs mem gz busy cpu load
Python 3 7.15 1,005,204 814 10.62 81% 1% 47% 20%
Node js 2.07 1,520,640 1481 4.26 14% 67% 61% 62%
binary-trees
source secs mem gz busy cpu load
Python 3 48.39 278,240 589 171.39 87% 88% 94% 86%
Node js 5.75 1,221,440 711 19.16 81% 88% 84% 80%
fasta
source secs mem gz busy cpu load
Python 3 38.07 845,888 1947 75.85 23% 63% 66% 47%
Node js 1.91 67,116 2047 6.13 77% 81% 78% 86%
fannkuch-redux
source secs mem gz busy cpu load
Python 3 366.43 47,608 950 1,448.16 100% 99% 100% 97%
Node js 11.54 56,856 1313 45.73 99% 99% 99% 99%
mandelbrot
source secs mem gz busy cpu load
Python 3 170.25 47,568 688 680.12 100% 100% 100% 100%
Node js 4.04 87,468 1122 15.91 99% 98% 98% 98%
n-body
source secs mem gz busy cpu load
Python 3 545.25 8,160 1196 558.88 1% 1% 1% 100%
Node js 8.38 35,220 1268 8.47 1% 0% 100% 0%
spectral-norm
source secs mem gz busy cpu load
Python 3 116.23 50,080 407 463.55 100% 100% 100% 100%
Node js 1.66 62,744 999 6.04 90% 90% 93% 90%
Python 3

Python 3.8.3

Node js

v14.8.0