The Computer Language
Benchmarks Game

Go programs versus Node.js

by benchmark task performance

reverse-complement
source secs mem gz cpu cpu load
Go 0.54 132,404 1338 0.91 25% 28% 58% 60%
Node.js 4.18 241,932 1103 4.44 2% 47% 58% 2%
fannkuch-redux
source secs mem gz cpu cpu load
Go 14.44 1,560 900 57.53 100% 100% 100% 100%
Node.js 89.85 30,216 473 89.83 100% 1% 0% 0%
fasta
source secs mem gz cpu cpu load
Go 2.17 3,404 1358 5.83 58% 69% 66% 77%
Node.js 9.80 34,704 1785 9.83 66% 1% 0% 34%
k-nucleotide
source secs mem gz cpu cpu load
Go 14.98 147,704 1722 55.60 97% 88% 92% 95%
Node.js 61.72 1,824,796 935 136.24 71% 75% 76% 96%
spectral-norm
source secs mem gz cpu cpu load
Go 3.94 2,320 548 15.69 99% 100% 100% 99%
Node.js 15.79 31,352 381 15.79 100% 0% 0% 0%
mandelbrot
source secs mem gz cpu cpu load
Go 5.48 30,704 905 21.74 100% 100% 99% 100%
Node.js 17.74 588,212 748 63.65 83% 97% 81% 98%
binary-trees
source secs mem gz cpu cpu load
Go 34.42 268,188 654 130.26 96% 94% 95% 94%
Node.js 45.67 657,468 440 81.85 45% 39% 39% 58%
n-body
source secs mem gz cpu cpu load
Go 21.47 1,568 1200 21.47 78% 1% 1% 22%
Node.js 26.61 32,608 1297 26.61 0% 0% 1% 100%
regex-redux
source secs mem gz cpu cpu load
Go 28.49 318,144 802 59.96 74% 48% 41% 48%
Node.js 4.23 594,916 432 4.25 78% 1% 0% 24%
pidigits
source secs mem gz cpu cpu load
Go 0.13 ? 603 0.13 92% 0% 0% 0%
Node.js   Bad Output
Go

go version go1.9 linux/amd64

Node.js

v9.0.0