The Computer Language
Benchmarks Game

Go programs versus Node.js

by benchmark task performance

mandelbrot
source secs mem gz cpu cpu load
Go 27.17 34,800 894 27.16 0% 1% 1% 100%
Node.js 122.11 815,576 778 122.00 1% 1% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
Go 47.48 147,788 1582 47.45 1% 1% 0% 100%
Node.js 194.10 1,570,816 904 140.97 1% 1% 1% 100%
reverse-complement
source secs mem gz cpu cpu load
Go 1.01 133,360 1278 1.00 3% 1% 1% 99%
Node.js 3.92 280,384 1088 3.91 1% 1% 1% 100%
n-body
source secs mem gz cpu cpu load
Go 23.18 928 1310 23.17 1% 0% 0% 100%
Node.js 38.34 22,660 1297 38.32 1% 4% 1% 100%
fasta
source secs mem gz cpu cpu load
Go 10.29 988 1036 10.28 0% 1% 0% 100%
Node.js 14.30 26,108 1101 14.29 1% 1% 0% 100%
spectral-norm
source secs mem gz cpu cpu load
Go 15.71 928 668 15.70 0% 1% 1% 100%
Node.js 15.79 24,392 413 15.78 0% 1% 0% 100%
fannkuch-redux
source secs mem gz cpu cpu load
Go 94.45 924 900 94.42 0% 1% 1% 100%
Node.js 78.68 22,304 473 78.65 0% 1% 1% 100%
binary-trees
source secs mem gz cpu cpu load
Go 167.96 184,252 548 167.86 0% 1% 1% 100%
Node.js 47.30 479,436 477 47.21 0% 1% 1% 100%
pidigits
source secs mem gz cpu cpu load
Go 0.26 792 729 0.24 4% 0% 8% 100%
Node.js   Bad Output
Go

go version go1.7 linux/386

Node.js

v6.9.0