The Computer Language
Benchmarks Game

Node js programs versus Python 3

by benchmark task performance

n-body
source secs mem gz cpu cpu load
Node js 26.61 33,152 1297 26.61 100% 0% 0% 1%
Python 3 838.39 10,324 1196 838.20 95% 1% 5% 0%
mandelbrot
source secs mem gz cpu cpu load
Node js 17.72 613,608 748 63.70 85% 94% 99% 83%
Python 3 225.24 15,736 688 899.25 100% 100% 100% 100%
spectral-norm
source secs mem gz cpu cpu load
Node js 15.79 31,900 381 15.79 100% 1% 0% 0%
Python 3 180.97 15,876 443 720.51 100% 100% 100% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Node js 89.63 30,960 473 89.61 0% 100% 0% 1%
Python 3 565.97 15,528 950 2,172.63 95% 94% 95% 100%
fasta
source secs mem gz cpu cpu load
Node js 9.80 34,804 1785 9.82 100% 1% 0% 0%
Python 3 59.47 15,996 1947 138.97 55% 55% 63% 66%
regex-redux
source secs mem gz cpu cpu load
Node js 4.22 596,420 432 4.24 100% 0% 0% 1%
Python 3 15.22 447,324 512 27.44 25% 33% 32% 91%
binary-trees
source secs mem gz cpu cpu load
Node js 45.39 658,324 440 81.91 37% 39% 59% 46%
Python 3 93.55 280,624 589 337.74 92% 89% 87% 93%
k-nucleotide
source secs mem gz cpu cpu load
Node js 61.24 1,739,992 935 137.09 80% 75% 95% 71%
Python 3 77.65 182,700 1967 302.86 97% 99% 97% 98%
reverse-complement
source secs mem gz cpu cpu load
Node js 16.66 706,256 1103 17.71 71% 51% 40% 48%
Python 3 18.79 1,008,868 814 19.73 9% 69% 35% 30%
pidigits
source secs mem gz cpu cpu load
Node js   Bad Output
Python 3 0.34 836 386 0.30 0% 3% 0% 100%
Node js

v9.4.0

Python 3

Python 3.6.3