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.

pidigits
source secs mem gz busy cpu load
Lua 1.94 4,056 479 2.02 2% 2% 100% 1%
Node js 12.47 65,228 530 12.71 19% 35% 3% 45%
regex-redux
source secs mem gz busy cpu load
Lua 4.36 339,520 482 4.43 0% 0% 1% 100%
Node js 10.53 792,316 668 13.01 12% 21% 55% 36%
binary-trees
source secs mem gz busy cpu load
Lua 154.13 1,084,256 664 485.35 76% 71% 87% 81%
Node js 21.72 1,030,264 744 76.82 88% 91% 88% 86%
k-nucleotide
source secs mem gz busy cpu load
Lua 189.90 521,716 613 191.07 1% 0% 99% 1%
Node js 25.55 396,948 1812 78.03 78% 72% 85% 71%
fasta
source secs mem gz busy cpu load
Lua 51.34 3,056 1061 51.87 0% 0% 1% 100%
Node js 3.38 66,344 2047 9.63 68% 52% 85% 80%
n-body
source secs mem gz busy cpu load
Lua 406.77 1,368 1305 412.06 0% 0% 1% 100%
Node js 23.25 35,456 1268 24.04 100% 0% 2% 1%
reverse-complement
source secs mem gz busy cpu load
Lua 77.65 2,932,848 553 77.85 26% 1% 4% 69%
Node js 3.93 1,473,680 1481 8.55 54% 71% 46% 47%
mandelbrot
source secs mem gz busy cpu load
Lua 256.77 22,712 623 899.10 99% 86% 87% 78%
Node js 6.72 87,356 1122 26.51 98% 98% 98% 99%
spectral-norm
source secs mem gz busy cpu load
Lua 192.80 2,872 329 199.44 15% 85% 1% 2%
Node js 4.29 62,304 999 16.47 96% 96% 96% 97%
fannkuch-redux
source secs mem gz busy cpu load
Lua 1,317.39 1,340 462 1,339.50 0% 100% 1% 1%
Node js 17.75 58,932 1313 70.26 99% 99% 99% 99%
Lua

Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio

Node js

v13.9.0