Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any other current benchmarks around for LuaJIT vs for instance java?


When then Programming Language Shootout use to include LuaJIT, it had a benchmark against Java.

If you want to see just LuaJIT vs Lua, [1] is a good comparison.

The reason why I liked the inclusion of LuaJIT in the Programming Language Shootout was that it compared LuaJIT to other language implementations not just on speed, but memory consumption and lines of code. All of which, LuaJIT typically dominated.

[1] http://luajit.org/performance_x86.html


https://github.com/darius/superbench is not a big fancy cross-language shootout, at all, but I tried a few little programs I actually cared about. LuaJIT 'won' in the sense that of the languages I tried it had the best combo of performance and pleasant productivity, informally. I didn't try to quantify the latter.

(Also, no Java because I wouldn't seriously consider it for hacking-for-fun.)


On top of that, luajit is very small/compact, and easily embeddable. FFI alone stands out as a huge win overall!


Where are the results of the benchmark?


You can run superopt/benchmark.sh on your machine. I'm away from home and the machine with the various languages installed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: