luajit_app
Test the Apple Silicon MacOS app using LuaJIT.
See the LICENSE file for details.
MIT for source code
git clone https://luajit.org/git/luajit.git LuaJIT
./compile_LuaJIT.sh
script to get universal libluajit.aluajit_app
and experiment./lib/LuaJIT/src/luajit lua_benchmark.lua
for example.Allow Execution of JIT-compiled Code
or Allow Unsigned Executable Memory
script lua_performance.lua
needs much more time to be done in comparison to the luajit
standalone binary. (On my M2 processor it is etc 0.15 seconds versus etc 19 seconds.) Rarity I see also the app fails with the reason: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Allow Unsigned Executable Memory
I see usually that the first run of the app needs 0.15 seconds to finish the benchmark and from some later runs, it drops to, etc 19 seconds.