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.54 1,363,756 744 22.72 74% 73% 73% 82%
k-nucleotide
source secs mem gz busy cpu load
Lua 119.24 596,500 613 119.78 0% 100% 0% 0%
Node js 15.73 395,496 1812 43.40 76% 61% 94% 45%
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,708 2047 6.24 77% 75% 83% 74%
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,522,216 1480 4.32 58% 60% 14% 72%
mandelbrot
source secs mem gz busy cpu load
Lua 86.29 18,496 623 304.76 86% 88% 100% 80%
Node js 4.04 89,736 1122 15.91 98% 99% 98% 98%
n-body
source secs mem gz busy cpu load
Lua 217.77 1,288 1193 218.86 0% 0% 0% 100%
Node js 8.40 34,280 1268 8.84 1% 3% 2% 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,216 999 6.16 83% 84% 85% 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.92 61,268 1313 45.47 95% 94% 96% 96%
regex-redux
source secs mem gz busy cpu load
Lua   Failed
Node js 4.76 1,152,480 668 5.85 29% 91% 1% 1%
pidigits
source secs mem gz busy cpu load
Lua   Failed
Node js 1.16 34,968 599 1.18 99% 2% 0% 1%
Lua

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

Node js

v15.0.1