The Computer Language
Benchmarks Game

Go versus Node js fastest programs

Always look at the source code.

These are only the fastest programs. Do some of them use manually vectorized SIMD? Look at the other programs. They may seem more-like a fair comparison to you.

k-nucleotide
source secs mem gz busy cpu load
Go 8.30 160,300 1607 31.96 96% 98% 96% 95%
Node js 15.61 396,176 1812 43.89 63% 93% 42% 84%
fannkuch-redux
source secs mem gz busy cpu load
Go 7.59 2,064 969 30.31 100% 100% 100% 100%
Node js 12.01 63,672 1313 45.81 95% 97% 94% 95%
fasta
source secs mem gz busy cpu load
Go 1.28 11,276 1404 3.78 65% 86% 81% 65%
Node js 1.96 71,268 2047 6.19 84% 81% 75% 75%
reverse-complement
source secs mem gz busy cpu load
Go 1.42 1,344,600 1338 2.66 57% 36% 71% 24%
Node js 2.09 1,534,860 1480 4.40 40% 60% 75% 36%
n-body
source secs mem gz busy cpu load
Go 6.38 1,896 1200 6.43 0% 100% 1% 0%
Node js 8.58 35,736 1268 8.64 0% 0% 100% 0%
spectral-norm
source secs mem gz busy cpu load
Go 1.44 2,356 548 5.71 99% 99% 99% 99%
Node js 1.88 67,108 999 6.23 84% 84% 81% 83%
pidigits
source secs mem gz busy cpu load
Go 1.00 8,952 683 1.04 0% 3% 99% 2%
Node js 1.28 36,568 599 1.29 0% 0% 99% 2%
regex-redux
source secs mem gz busy cpu load
Go 3.94 323,252 810 6.14 74% 30% 19% 33%
Node js 4.89 1,149,928 668 5.96 1% 6% 24% 91%
mandelbrot
source secs mem gz busy cpu load
Go 3.75 34,832 894 14.92 100% 99% 99% 100%
Node js 4.04 94,720 1122 15.94 98% 100% 99% 98%
binary-trees
source secs mem gz busy cpu load
Go 12.80 385,036 1017 43.87 85% 87% 85% 86%
Node js 7.44 1,233,920 744 23.55 79% 75% 75% 87%
Go

go version go1.16 linux/amd64

Node js

v16.0.0