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.63 89,120 1338 1.00 39% 43% 27% 57%
Node.js 4.14 243,736 1103 4.40 26% 21% 7% 53%
fannkuch-redux
source secs mem gz cpu cpu load
Go 14.72 1,540 900 58.65 100% 100% 99% 100%
Node.js 89.63 30,960 473 89.61 0% 100% 0% 1%
k-nucleotide
source secs mem gz cpu cpu load
Go 12.72 148,012 1722 47.51 93% 96% 92% 92%
Node.js 61.24 1,739,992 935 137.09 80% 75% 95% 71%
fasta
source secs mem gz cpu cpu load
Go 2.08 3,640 1358 5.69 84% 66% 70% 56%
Node.js 9.80 34,804 1785 9.82 100% 1% 0% 0%
spectral-norm
source secs mem gz cpu cpu load
Go 3.94 2,344 548 15.71 100% 100% 100% 100%
Node.js 15.79 31,900 381 15.79 100% 1% 0% 0%
mandelbrot
source secs mem gz cpu cpu load
Go 5.47 30,664 894 21.75 99% 99% 99% 100%
Node.js 17.72 613,608 748 63.70 85% 94% 99% 83%
binary-trees
source secs mem gz cpu cpu load
Go 28.80 434,632 654 109.58 94% 95% 95% 97%
Node.js 45.39 658,324 440 81.91 37% 39% 59% 46%
n-body
source secs mem gz cpu cpu load
Go 21.37 1,536 1310 21.38 0% 0% 100% 0%
Node.js 26.61 33,152 1297 26.61 100% 0% 0% 1%
regex-redux
source secs mem gz cpu cpu load
Go 28.21 323,820 802 59.87 69% 46% 50% 48%
Node.js 4.22 596,420 432 4.24 100% 0% 0% 1%
pidigits
source secs mem gz cpu cpu load
Go 0.13 ? 603 0.13 0% 7% 0% 93%
Node.js   Bad Output
Go

go version go1.10 linux/amd64

Node.js

v9.4.0