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 27.76 27,704 1297 27.76 100% 0% 1% 1%
Python 3 787.02 7,744 1181 786.82 0% 1% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Node.js 17.95 641,352 778 64.47 98% 82% 86% 95%
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 15.77 28,192 368 15.76 0% 1% 100% 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.39 31,212 1745 9.40 100% 1% 1% 0%
Python 3 110.91 8,024 977 110.87 100% 1% 1% 1%
fannkuch-redux
source secs mem gz cpu cpu load
Node.js 78.16 26,632 473 78.13 100% 2% 3% 2%
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.15 448,996 452 4.15 42% 58% 1% 0%
Python 3 14.86 439,208 486 27.92 46% 77% 35% 31%
binary-trees
source secs mem gz cpu cpu load
Node.js 51.21 931,768 440 51.98 57% 10% 30% 5%
Python 3 86.90 451,548 581 306.31 89% 97% 87% 89%
k-nucleotide
source secs mem gz cpu cpu load
Node.js 62.09 2,089,424 904 152.72 82% 85% 95% 82%
Python 3 84.73 221,028 1937 276.97 97% 93% 91% 91%
reverse-complement
source secs mem gz cpu cpu load
Node.js 3.72 244,156 1088 3.99 1% 8% 3% 98%
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   Failed
Node.js

v7.9.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