3 ms·
lua compiled to asm.js is 64% of the speed of lua native https://kripken.github.io/lua.vm.js/lua.vm.js.html https://kripken.github.io/lua.vm.js/lua.vm.js.html
by bryanlarsen 11y ago
lua compiled to asm.js is 64% of the speed of lua native
https://kripken.github.io/lua.vm.js/lua.vm.js.html https://kripken.github.io/lua.vm.js/lua.vm.js.html
- pygy_ 11y ago... which is about 10 times slower than the LuaJIT compiler used by OpenResty.
- Touche 11y agoSo that might be good enough in the browser but on the server where an optimized Lua engine exists, why?
- daurnimator 11y agoThat's not compiling lua to asm.js; it's running the lua vm in asm.js. A straight up transpilation is other projects like lua.js. But you loose really nice core lua features like coroutines...