Test the Apple Silicon MacOS app using LuaJIT.
See the LICENSE file for details.
MIT for source code
- Go to lib directory.
- Clone LuaJIT 2.1 from repo to LuaJIT dir:
git clone https://luajit.org/git/luajit.git LuaJIT - Call
./compile_LuaJIT.shscript to get universal libluajit.a - Build
luajit_appand experiment - You can always compare with
./lib/LuaJIT/src/luajit lua_benchmark.luafor example. - You can always apply changes to LuaJIT, recompile it with a compile script, and rebuild your app.
- Without extra entitlements like
Allow Execution of JIT-compiled CodeorAllow Unsigned Executable Memoryscriptlua_performance.luaneeds much more time to be done in comparison to theluajitstandalone 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)) - With
Allow Unsigned Executable MemoryI 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.