To be just, Lua is drastically simpler as a language. A simpler language likely takes less effort to write an efficient JIT for its VM.
Re:Why Is JRuby Slow?
by ZeroGravitas on Saturday May 29, 2021 @04:12AM
(#27323788)
And javascript's speed seems mostly a result of throwing amazing amounts of smart engineers at it over time, rather than anything inherent in the language itself.
Because Lua (1993) and JavaScript (1995) can be very fast.