bench: tools/bench.sh core [filter] runs tools/bench_core.luau under luau -O2, --codegen and LuaJIT
This commit is contained in:
1 parent
53290f0e0c
commit
6fab0d3dca
2 files changed
+15
-2
No files matched your search
@@ -11,6 +11,9 @@ local B = require("@tests/gen/deflate_bench")
|
||||
|
||||
local runtime = if (_G :: any).jit ~= nil then "luajit" else "luau"
|
||||
local filter: string? = (...) :: any
|
||||
if filter == "" then
|
||||
filter = nil
|
||||
end
|
||||
|
||||
local function want(labels: string): boolean
|
||||
return filter == nil or string.find(labels, filter :: string, 1, true) ~= nil
|
||||
|
||||
Reference in new issue
Block a user