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 28.74 32,016 1297 28.73 100% 0% 0% 1%
Python 3 787.02 7,744 1181 786.82 0% 1% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Node.js 19.04 311,404 778 67.84 82% 96% 83% 97%
Python 3 273.43 53,416 686 1,091.35 100% 100% 100% 100%
spectral-norm
source secs mem gz cpu cpu load
Node.js 16.17 31,288 368 16.17 100% 1% 1% 0%
Python 3 188.83 54,524 437 750.46 99% 100% 100% 99%
fasta
source secs mem gz cpu cpu load
Node.js 9.79 35,012 1745 9.81 1% 0% 1% 100%
Python 3 110.91 8,024 977 110.87 100% 1% 1% 1%
fannkuch-redux
source secs mem gz cpu cpu load
Node.js 81.49 29,880 473 81.46 100% 1% 1% 0%
Python 3 483.79 51,896 944 1,880.10 97% 94% 100% 99%
regex-redux
source secs mem gz cpu cpu load
Node.js 4.44 511,916 452 4.45 0% 87% 2% 14%
Python 3 14.86 439,208 486 27.92 46% 77% 35% 31%
binary-trees
source secs mem gz cpu cpu load
Node.js 53.64 918,808 440 55.05 68% 2% 5% 30%
Python 3 86.90 451,548 581 306.31 89% 97% 87% 89%
k-nucleotide
source secs mem gz cpu cpu load
Node.js 66.07 76,980 904 152.53 96% 77% 78% 77%
Python 3 84.73 221,028 1937 276.97 97% 93% 91% 91%
reverse-complement
source secs mem gz cpu cpu load
Node.js 4.30 243,956 1088 4.63 5% 93% 7% 3%
Python 3 2.82 265,428 800 4.18 46% 32% 20% 54%
pidigits
source secs mem gz cpu cpu load
Node.js   Bad Output
Python 3 0.29 752 382 0.19 97% 3% 0% 0%
Node.js

v8.4.0

Python 3

Python 3.6.1 (default, Apr 18 2017, 10:33:41)
[GCC 6.3.0 20170406]
--enable-optimizations --with-lto
make profile-opt