The Computer Language
Benchmarks Game

Lua versus Node js fastest programs

Always look at the source code.

These are only the fastest programs. Look at the other programs. They may seem more-like a fair comparison to you.

binary-trees
source secs mem gz busy cpu load
Lua 50.85 884,352 664 189.06 92% 97% 91% 92%
Node js 7.34 1,262,364 744 22.41 75% 84% 72% 75%
k-nucleotide
source secs mem gz busy cpu load
Lua 119.24 596,500 613 119.78 0% 100% 0% 0%
Node js 15.48 395,304 1812 42.72 77% 92% 61% 46%
fasta
source secs mem gz busy cpu load
Lua 28.31 2,840 1061 28.57 0% 1% 0% 100%
Node js 2.02 67,936 2047 6.27 78% 81% 75% 75%
reverse-complement
source secs mem gz busy cpu load
Lua 44.41 2,165,032 752 44.52 0% 0% 100% 0%
Node js 2.12 1,525,056 1481 4.38 48% 27% 70% 62%
mandelbrot
source secs mem gz busy cpu load
Lua 86.29 18,496 623 304.76 86% 88% 100% 80%
Node js 4.03 89,888 1122 15.89 99% 98% 98% 99%
n-body
source secs mem gz busy cpu load
Lua 217.77 1,288 1193 218.86 0% 0% 0% 100%
Node js 8.36 34,332 1268 8.37 0% 0% 0% 100%
spectral-norm
source secs mem gz busy cpu load
Lua 87.25 2,736 329 87.59 0% 0% 100% 0%
Node js 1.84 61,080 999 6.15 84% 81% 86% 83%
fannkuch-redux
source secs mem gz busy cpu load
Lua 719.15 1,224 462 723.72 0% 0% 0% 100%
Node js 11.89 61,216 1313 45.33 96% 94% 96% 94%
regex-redux
source secs mem gz busy cpu load
Lua   Failed
Node js 4.76 1,152,392 668 5.82 1% 1% 28% 91%
pidigits
source secs mem gz busy cpu load
Lua   Failed
Node js 1.16 34,980 599 1.21 1% 1% 99% 3%
Lua

Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio

Node js

v15.2.1