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.48 88,820 1278 0.86 32% 48% 63% 44%
Node.js 3.68 245,496 1088 3.93 4% 4% 98% 2%
fannkuch-redux
source secs mem gz cpu cpu load
Go 15.84 1,384 900 63.01 99% 100% 100% 100%
Node.js 78.41 27,192 473 78.39 1% 1% 100% 1%
fasta
source secs mem gz cpu cpu load
Go 1.98 3,312 1344 5.63 60% 71% 78% 78%
Node.js 9.45 31,892 1745 9.46 1% 1% 1% 100%
k-nucleotide
source secs mem gz cpu cpu load
Go 15.02 149,248 1713 56.88 92% 94% 97% 96%
Node.js 60.73 2,095,052 904 151.74 96% 84% 84% 83%
spectral-norm
source secs mem gz cpu cpu load
Go 3.95 2,156 548 15.70 100% 99% 99% 100%
Node.js 15.77 28,804 425 15.77 1% 0% 1% 100%
mandelbrot
source secs mem gz cpu cpu load
Go 5.64 31,052 894 22.41 99% 99% 99% 100%
Node.js 17.49 564,704 778 62.77 84% 84% 96% 97%
binary-trees
source secs mem gz cpu cpu load
Go 39.68 364,612 688 150.64 95% 95% 95% 96%
Node.js 55.64 895,396 477 56.61 3% 52% 43% 5%
n-body
source secs mem gz cpu cpu load
Go 21.52 832 1310 21.52 1% 1% 1% 100%
Node.js 27.82 28,208 1297 27.81 1% 0% 1% 100%
regex-redux
source secs mem gz cpu cpu load
Go 29.76 353,332 798 62.56 50% 67% 53% 41%
Node.js 4.02 507,480 452 4.02 0% 1% 100% 0%
pidigits
source secs mem gz cpu cpu load
Go 0.13 ? 603 0.12 0% 100% 0% 7%
Node.js   Bad Output
Go

go version go1.8 linux/amd64

Node.js

v7.6.0