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 32,608 1297 26.61 0% 0% 1% 100%
Python 3 838.39 10,324 1196 838.20 95% 1% 5% 0%
mandelbrot
source secs mem gz cpu cpu load
Node.js 17.74 588,212 748 63.65 83% 97% 81% 98%
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,352 381 15.79 100% 0% 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.85 30,216 473 89.83 100% 1% 0% 0%
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,704 1785 9.83 66% 1% 0% 34%
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.23 594,916 432 4.25 78% 1% 0% 24%
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.67 657,468 440 81.85 45% 39% 39% 58%
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.72 1,824,796 935 136.24 71% 75% 76% 96%
Python 3 77.65 182,700 1967 302.86 97% 99% 97% 98%
reverse-complement
source secs mem gz cpu cpu load
Node.js 4.18 241,932 1103 4.44 2% 47% 58% 2%
Python 3 3.26 264,596 814 4.67 18% 99% 1% 26%
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.0.0

Python 3

Python 3.6.3