4 ms·
You might be surprised but V8 these days is pretty close to LJ2 performance. LJ2 does amazingly good job on loopy code but is easily outperformed by V8 on OOPy
by mraleph 14y ago
You might be surprised but V8 these days is pretty close to LJ2 performance. LJ2 does amazingly good job on loopy code but is easily outperformed by V8 on OOPy polymorphic one: e.g. DeltaBlue benchmark ported to Lua was something like 5-10 times slower on LJ2 than on V8 last time I checked.
[here is my port of DeltaBlue: https://github.com/mraleph/deltablue.lua https://github.com/mraleph/deltablue.lua, I admit that I might have screwed up porting it, but internal benchmark verification checks did not catch anything]
- gruseom 14y agoSo the difference between V8 and LJ2 is more in what kinds of optimization they prioritize, than in overall superior performance by LJ2? Yes, I am surprised to hear that, in a good way. The interesting thing about LJ2 (as distinct from Lua the language) is that it broke such impressive new ground for what is possible in optimizing dynamic languages.