-- Mixed-workload check (bash tools/bench.sh mixed), LuaJIT only: bench_core, bench_audio, bench_video and bench_image -- in one process, as an app that decodes many formats runs them, the video and image lines against each bench run -- alone (the files of its arguments, written by bench.sh). LuaJIT's traces, blacklists and penalties are per process: -- a shared helper blacklisted by one codec, or a side trace that never compiles, slows every later caller, which the -- per-codec benches never show. Lines more than 1.3x slower mixed than alone are marked. local jit = (_G :: any).jit if jit == nil then print("bench_mixed: LuaJIT only (bash tools/bench.sh mixed)") return end local G = _G :: any local loadfile, io = G.loadfile, G.io local imageAlone, videoAlone = ... -- "luajit