Open qiuxinyun2010 opened 2 months ago
The test case is to sum to 10000000.
execution time:
lua.script(R"( x = 0; for i = 1, 10000000 do x = x+i; end )"); // sol took 56 ms // luabridge took 7ms int x = 0; for (auto i = 0; i < 10000000; i++) { x0 += i; } // took 6ms
did you load the jit module with lua.open_libraries(sol::lib::jit)?
lua.open_libraries(sol::lib::jit)
The test case is to sum to 10000000.
execution time: