Lua vs LuaJIT2 alises

A category for whatever! Can be Mudlet-related or offtopic.
Post Reply
User avatar
Vadi
Posts: 5035
Joined: Sat Mar 14, 2009 3:13 pm

Lua vs LuaJIT2 alises

Post by Vadi »

For anyone doing heavy computing with a Mudlet that uses LuaJIT2 (check if the 'jit' global table exists to know if you are), benchmarks from the LuaJIT2 page with Mudlet stopwatches. The result is rather amazing for raw computing when you bring ffi in:

jitlua
The LuaJIT2 conversion took 0.66 seconds.
jitlua
The LuaJIT2 conversion took 0.654 seconds.

purelua
The Lua conversion took 6.384 seconds.
purelua
The Lua conversion took 6.33 seconds.
Attachments
Lua vs LuaJIT2.xml
(2.28 KiB) Downloaded 551 times

Post Reply