The Computer Language
Benchmarks Game

Node.js programs versus C++ g++

by benchmark task performance

spectral-norm
source secs mem gz cpu cpu load
Node.js 15.79 24,392 413 15.78 0% 1% 0% 100%
C++ g++ 7.93 2,288 1044 7.92 1% 1% 0% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Node.js 78.68 22,304 473 78.65 0% 1% 1% 100%
C++ g++ 24.65 556 1150 24.64 1% 1% 0% 100%
fasta
source secs mem gz cpu cpu load
Node.js 14.30 26,108 1101 14.29 1% 1% 0% 100%
C++ g++ 4.21 1,336 1105 4.20 1% 1% 0% 100%
reverse-complement
source secs mem gz cpu cpu load
Node.js 3.92 280,384 1088 3.91 1% 1% 1% 100%
C++ g++ 1.02 247,604 2275 1.01 2% 0% 0% 100%
n-body
source secs mem gz cpu cpu load
Node.js 38.34 22,660 1297 38.32 1% 4% 1% 100%
C++ g++ 8.96 816 1545 8.95 1% 1% 0% 100%
mandelbrot
source secs mem gz cpu cpu load
Node.js 122.11 815,576 778 122.00 1% 1% 1% 100%
C++ g++ 20.11 33,768 726 20.10 0% 1% 1% 100%
binary-trees
source secs mem gz cpu cpu load
Node.js 47.30 479,436 477 47.21 0% 1% 1% 100%
C++ g++ 6.86 76,616 846 6.85 0% 1% 0% 100%
k-nucleotide
source secs mem gz cpu cpu load
Node.js 194.10 1,570,816 904 140.97 1% 1% 1% 100%
C++ g++ 24.04 137,908 1252 23.98 1% 1% 0% 100%
pidigits
source secs mem gz cpu cpu load
Node.js   Bad Output
C++ g++ 0.09 ? 508 0.09 0% 0% 10% 100%
Node.js

v6.9.0

C++ g++

g++ (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609