4 ms·
Not defending the grandparent's post, but LuaJIT is actually faster than Java or C#. Hell, it's faster than raw C in certain cases because it can optimize bette
by chc4 11y ago
Not defending the grandparent's post, but LuaJIT is actually faster than Java or C#. Hell, it's faster than raw C in certain cases because it can optimize better due to being a simpler language. Mike Pall is a god amongst man.
I think it's due to LuaJIT being one of the very few tracing JITs that are still in development, since they are notoriously difficult to write and maintain.
- xxs 11y agoTracing compiler might add a bit of performance in the naive cases where the developers don't know how the JIT optimizes. If I care about performance I'd check the generated assembly and modify accordingly till I get decent result. Baring that: do you have any reputable source claiming LuaJIT outperforms C#/java/C?
- chc4 11y agoUnfortunately the Benchmarks Game seems to have removed LuaJIT in favor of Lua 5.3, but https://stackoverflow.com/questions/2588071/is-luajit-really-faster-than-every-other-jit-ed-dynamic-languages https://stackoverflow.com/questions/2588071/is-luajit-really... mentions it as being an order of magnitude faster. I've seen it said multiple times that LuaJIT is the gold standard of JITing, but can't find very many concrete benchmarks anymore.
- xxs 11y agoAnything saying 'order of magnitude' can't be taken seriously. That would imply a horrid baseline in order to get it that fast. Merely I don't believe a tracing JIT would have a great impact in a real world scenario.