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.49 133,532 1278 0.87 76% 30% 27% 49%
Node.js 4.30 243,956 1088 4.63 5% 93% 7% 3%
fannkuch-redux
source secs mem gz cpu cpu load
Go 14.49 3,204 896 57.82 100% 100% 100% 100%
Node.js 81.49 29,880 473 81.46 100% 1% 1% 0%
fasta
source secs mem gz cpu cpu load
Go 2.17 3,584 1344 5.84 59% 78% 70% 64%
Node.js 9.79 35,012 1745 9.81 1% 0% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
Go 14.79 149,212 1713 53.03 88% 90% 96% 87%
Node.js 66.07 76,980 904 152.53 96% 77% 78% 77%
spectral-norm
source secs mem gz cpu cpu load
Go 3.96 2,584 548 15.70 99% 99% 99% 99%
Node.js 16.17 31,288 368 16.17 100% 1% 1% 0%
mandelbrot
source secs mem gz cpu cpu load
Go 5.46 31,172 905 21.66 99% 100% 100% 99%
Node.js 19.04 311,404 778 67.84 82% 96% 83% 97%
binary-trees
source secs mem gz cpu cpu load
Go 35.18 277,864 660 132.94 96% 94% 94% 95%
Node.js 53.64 918,808 440 55.05 68% 2% 5% 30%
n-body
source secs mem gz cpu cpu load
Go 21.47 1,560 1200 21.47 100% 0% 1% 1%
Node.js 28.74 32,016 1297 28.73 100% 0% 0% 1%
regex-redux
source secs mem gz cpu cpu load
Go 29.29 344,348 798 61.79 37% 59% 79% 38%
Node.js 4.44 511,916 452 4.45 0% 87% 2% 14%
pidigits
source secs mem gz cpu cpu load
Go 0.13 ? 603 0.13 93% 0% 0% 0%
Node.js   Bad Output
Go

go version go1.9 linux/amd64

Node.js

v8.4.0