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 88,056 1278 0.87 27% 43% 28% 81%
Node.js 3.72 244,156 1088 3.99 1% 8% 3% 98%
fannkuch-redux
source secs mem gz cpu cpu load
Go 15.81 1,372 900 62.92 100% 100% 99% 99%
Node.js 78.16 26,632 473 78.13 100% 2% 3% 2%
fasta
source secs mem gz cpu cpu load
Go 1.98 3,044 1344 5.65 75% 82% 47% 85%
Node.js 9.39 31,212 1745 9.40 100% 1% 1% 0%
spectral-norm
source secs mem gz cpu cpu load
Go 3.96 2,148 548 15.71 100% 99% 99% 99%
Node.js 15.77 28,192 368 15.76 0% 1% 100% 0%
k-nucleotide
source secs mem gz cpu cpu load
Go 16.08 149,180 1582 59.44 95% 90% 90% 97%
Node.js 62.09 2,089,424 904 152.72 82% 85% 95% 82%
mandelbrot
source secs mem gz cpu cpu load
Go 5.64 31,312 894 22.41 99% 100% 99% 99%
Node.js 17.95 641,352 778 64.47 98% 82% 86% 95%
binary-trees
source secs mem gz cpu cpu load
Go 34.77 269,068 654 132.04 95% 97% 95% 95%
Node.js 51.21 931,768 440 51.98 57% 10% 30% 5%
n-body
source secs mem gz cpu cpu load
Go 21.52 832 1310 21.52 1% 100% 0% 0%
Node.js 27.76 27,704 1297 27.76 100% 0% 1% 1%
regex-redux
source secs mem gz cpu cpu load
Go 29.51 352,804 798 61.51 77% 49% 43% 40%
Node.js 4.15 448,996 452 4.15 42% 58% 1% 0%
pidigits
source secs mem gz cpu cpu load
Go 0.13 ? 603 0.13 0% 0% 0% 100%
Node.js   Bad Output
Go

go version go1.8.1 linux/amd64

Node.js

v7.9.0