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.82 28,208 1297 27.81 1% 0% 1% 100%
Python 3 836.27 7,756 1181 836.06 0% 1% 1% 100%
mandelbrot
source secs mem gz cpu cpu load
Node.js 17.49 564,704 778 62.77 84% 84% 96% 97%
Python 3 250.62 52,752 686 1,000.26 100% 100% 100% 100%
fasta
source secs mem gz cpu cpu load
Node.js 9.45 31,892 1745 9.46 1% 1% 1% 100%
Python 3 113.03 7,860 977 112.99 1% 100% 0% 1%
spectral-norm
source secs mem gz cpu cpu load
Node.js 15.77 28,804 425 15.77 1% 0% 1% 100%
Python 3 180.01 55,892 437 714.86 99% 100% 99% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Node.js 78.41 27,192 473 78.39 1% 1% 100% 1%
Python 3 501.72 54,708 944 1,967.92 98% 97% 100% 99%
regex-redux
source secs mem gz cpu cpu load
Node.js 4.02 507,480 452 4.02 0% 1% 100% 0%
Python 3 14.87 433,868 486 28.02 32% 45% 84% 29%
binary-trees
source secs mem gz cpu cpu load
Node.js 55.64 895,396 477 56.61 3% 52% 43% 5%
Python 3 126.07 831,740 596 474.55 93% 93% 93% 99%
k-nucleotide
source secs mem gz cpu cpu load
Node.js 60.73 2,095,052 904 151.74 96% 84% 84% 83%
Python 3 72.35 229,040 1937 268.72 98% 94% 91% 94%
reverse-complement
source secs mem gz cpu cpu load
Node.js 3.68 245,496 1088 3.93 4% 4% 98% 2%
Python 3 2.93 265,636 800 4.28 80% 46% 21% 2%
pidigits
source secs mem gz cpu cpu load
Node.js   Bad Output
Python 3 0.19 ? 382 0.18 0% 100% 5% 0%
Node.js

v7.6.0

Python 3

Python 3.6.0 (default, Feb 5 2017, 10:29:14) [GCC 5.4.0 20160609] on linux
--enable-optimizations
make profile-opt