Naive performance comparison of a few programming languages (JavaScript, Kotlin, Rust, Swift, Nim, Python, Go, Haskell, D, C++, Java, C#, Object Pascal, Ada, Lua, Ruby)
Tested with PUC-Lua 5.3.4 and LuaJIT 2.1.0-beta1. The `main-mt.lua` implementation uses metatables as classes. Some might consider it more "Lua-ic", some don't. Rough relative comparison: | Implementation | PUC-Lua | LuaJIT -O3 | LuaJIT -O2 | LuaJIT -O1 | LuaJIT -O0 | LuaJIT -joff | |----------------|---------|------------|------------|------------|------------|--------------| | main.lua | 9.87s | 1.22s | 1.24s | 1.27s | 1.28s | 6.75s | | main-mt.lua | 10.92s | 1.73s | 1.74s | 1.75s | 1.75s | 7.32s | LuaJIT performs around 27% faster than Node.js on my system.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by jakobend and has received 2 comments.