Hacker News new | ask | show | jobs
by iainmerrick 2618 days ago
The most impressive result here is Lua -- not far behind C! LuaJIT is amazing.

Good to see a few languages like Nim and Rust actually beating C for raw performance, too.

3 comments

Am I reading it wrong or did LuaJIT take 113x as long as C?
It sure looks that slow to me.
Ha, you’re right, I totally misread it! I read it as seconds and not minutes, doh. :)
You should look again. Lua seems to be the slowest of the bunch.
Whoops, yes, you’re right!

Now I’m tempted to try speeding it up, there’s no way it should be behind Python...

I haven’t checked the code, but I’m also hugely surprised Lua did so poorly. Even the default non-JIT interpreter should be way faster than Python.
Sarcasm?
Unfortunately for me, Hanlon’s Razor applies.