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.27 1,064,544 668 5.47 4% 2% 75% 47%
pidigits
source secs mem gz busy cpu load
Python 3 1.29 11,976 567 1.30 0% 100% 1% 0%
Node js 1.32 36,176 599 1.50 3% 2% 8% 100%
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.06 398,672 1812 41.57 76% 60% 48% 92%
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.19 1,340,520 1480 4.46 48% 55% 50% 50%
binary-trees
source secs mem gz busy cpu load
Python 3 48.45 448,980 589 171.58 86% 86% 87% 94%
Node js 5.83 1,204,544 711 19.61 86% 82% 84% 85%
fasta
source secs mem gz busy cpu load
Python 3 38.07 845,888 1947 75.85 23% 63% 66% 47%
Node js 2.04 67,420 2047 6.33 76% 85% 75% 74%
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 12.10 57,164 1313 47.74 98% 98% 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.01 86,468 1122 15.74 98% 98% 99% 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.35 35,628 1268 8.48 1% 100% 0% 0%
spectral-norm
source secs mem gz busy cpu load
Python 3 124.52 49,872 417 484.76 97% 97% 97% 97%
Node js 1.68 62,068 999 6.05 89% 90% 91% 90%
Python 3

Python 3.8.3

Node js

v14.4.0