示例工程 31-luajit-and-ffi
31-luajit-and-ffi/03-jit-on-off-bench/_test.lua
-- @runtimes luajit
local h = require("harness")
local m = require("main")
h.describe("JIT 开关", function()
h.it("两种模式结果正确", function()
local r = m.run(function() end)
h.eq(r.jit, true)
h.truthy(r.on_time >= 0 and r.off_time >= 0)
end)
end)
h.run()