Skip to content

Benchmarks ​

Measured sequentially on an AMD Ryzen 7 5800X under headless luau 0.748 (--codegen -O2 matching Roblox native codegen, and -O2 interpreter). Every VM workload verifies exact output parity against host Luau loadstring before timing.

Ouro vs Fiu vs LuauCeption full benchmark breakdown

Summary ​

MetricOuro (0.1.0)Ouro (guarded)Fiu (fast)LuauCeption (0.654)
VM execution (--codegen -O2, 13 workloads)1.01×1.19×2.76×43.69× (12 + 1 DNF)
VM execution (-O2, 13 workloads)1.00×1.16×3.68×16.92× (12 + 1 DNF)
O2 compilation (--codegen -O2, 5 corpora)1.00×—VM-only14.12×
O2 compilation (-O2, 5 corpora)1.00×—VM-only8.45×
Cold load + run (--codegen -O2, 1k loop)0.057 ms—0.121 ms6.23 ms
Cold load + run (-O2, 1k loop)0.144 ms—0.653 ms5.36 ms
Cold root require (--codegen -O2 / -O2)0.86 / 0.68 ms—10.63 / 2.41 ms731.46 / 363.13 ms
Source footprint1.23 MiB (35 files)—44 KiB (1 file)5.41 MiB (Full.luau)

Ouro's root require loads only types and a lazy facade, deferring VM (45.22 ms codegen / 20.88 ms interp), Parser (30.79 / 9.66 ms), and Compiler (60.16 / 19.62 ms) until accessed (137.01 / 50.83 ms if every submodule loads eagerly).

Capabilities ​

CapabilityOuro (0.1.0)FiuLuauCeption (0.654)
Lexer & lossless ASTYes (reconstruct() exact bytes)NoC++/WASM only
Luau 0.748 bytecode compiler (O0–O2)Yes (pure Luau)NoLuau 0.654 via WASM
Bytecode disassembler & verifierYes (v3–v14 verified)Deserializes onlyC++/WASM only
Sandboxed register VMDual @native fast / guardedInterpreter loopWASM C VM (lua_State)
Instruction, call, time & memory limitsYes (LoadOptions + ResourceLimits)Custom hooks onlyCustom C setup
Per-environment RNG & getGlobal/setGlobalBuilt-in (PCG32)Manual metatable envManual metatable env
Runtime architecturePure --!strict LuauPure LuauEmscripten WASM in Luau

Native Codegen (luau --codegen -O2) ​

Warm VM Execution (p50 ms) ​

WorkloadDescriptionHostOuroOuro guardedFiu (default)Fiu (fast)LuauCeption
vm-suiteMixed loop, fib, meta, co0.5546.9658.34618.36116.485261.637
arith-100k100k arithmetic loop1.5407.6018.77221.80820.230565.080
fib-24Recursive fib(24)2.61334.78243.218284.626268.7801267.670
closures-20k20k upvalue closures0.83912.00112.96615.32616.379360.232
tables-meta-5k5k metatable & method ops0.6019.92311.19522.69521.381380.823
imports-20k20k math builtins & imports0.93720.42017.66533.95336.667288.239
globals-20k20k global reads & writes0.2061.6542.0733.5243.501107.291
pcall-2k2k pcall frames (25% throw)1.3002.4764.2346.8206.644DNF (error)
forin-gen-20k20k ipairs table scans0.1052.0552.4036.7975.44385.465
quicksort-2kQuicksort 2,000 numbers0.7864.8985.60711.33117.510333.233
string-ops-10k10k concat & string calls1.3795.6725.80621.77618.754467.504
varargs-10k10k select vararg loops0.81415.19718.78252.22847.957411.608
table-dict-20k20k dictionary field ops1.6059.52411.49720.75230.839587.711

O2 Compilation & Bytecode Loading (p50 ms) ​

CorpusSizeBytecodeLexParseCompile O2Full O2 (Ouro)Full O2 (LC)Speedup
tiny-120B56 B86 B0.0040.0140.0320.0560.67912.18×
runtime-10KiB10 KiB10,628 B0.5871.9483.8225.33089.67216.82×
runtime-50KiB50 KiB54,019 B2.8289.40121.27133.984408.66312.03×
runtime-250KiB250 KiB271,252 B13.75348.308133.034197.5672248.89011.38×
types-50KiB50 KiB41 B3.7119.4690.77112.224244.86620.03×

Ouro.Bytecode.deserialize decodes the 10 KiB / 50 KiB / 250 KiB runtime bytecode in 0.110 / 0.479 / 3.738 ms, and Ouro.VM.loadBytecode prepares callable closures in 0.312 / 1.192 / 5.925 ms.

Interpreter (luau -O2) ​

Warm VM Execution (p50 ms) ​

WorkloadHostOuroOuro guardedFiu (default)Fiu (fast)LuauCeption
vm-suite0.57716.56420.17061.54960.962249.109
arith-100k0.94327.53730.871151.394151.973515.975
fib-242.52091.686106.796430.404372.9621149.780
closures-20k0.69121.71724.79646.18347.072347.767
tables-meta-5k0.64516.98019.52652.07351.465318.251
imports-20k0.58115.91817.540106.392104.942256.775
globals-20k0.2046.3107.11516.20616.65797.796
pcall-2k0.9243.3485.31911.3599.633DNF (error)
forin-gen-20k0.1034.8425.36621.06920.30975.952
quicksort-2k0.74116.50318.99944.99846.890269.529
string-ops-10k1.24215.07315.31662.57260.570438.220
varargs-10k0.54429.33033.748150.914149.920382.082
table-dict-20k1.43926.18329.04595.55988.691561.358

O2 Compilation & Bytecode Loading (p50 ms) ​

CorpusLexParseCompile O2Full O2 (Ouro)Full O2 (LC)Speedup
tiny-120B0.0080.0220.0470.0780.6738.68×
runtime-10KiB1.1583.3688.58410.68883.2917.79×
runtime-50KiB5.81617.85542.36861.230424.3916.93×
runtime-250KiB28.51488.671213.784301.0142172.0607.22×
types-50KiB7.15518.7321.13519.308246.28512.76×

Ouro.Bytecode.deserialize takes 0.181 / 0.974 / 4.114 ms across 10 KiB / 50 KiB / 250 KiB, and Ouro.VM.loadBytecode takes 0.578 / 2.963 / 13.147 ms.

Methodology ​

  • Sampling: Warmed median (p50) over 7 runs (5 for fib-24 and runtime-250KiB; 9 for cold-load-run). Expect roughly ±10% run-to-run variance on microbenchmarks.
  • Fair sandbox configuration: Ouro executes in its default isolated environment (VM.createEnvironment()), with Ouro (guarded) enforcing instructionLimit = 50_000_000. Fiu (fast) configures errorHandling = false, reuseClosures = true, vectorCtor = vector.create, and static useImportConstants = true on all non-global workloads. LuauCeption runs inside luaL_sandbox(L) on all non-global workloads.
  • Handling pcall-2k: LuauCeption throws Infinity in WASM C++ exception handling when guest errors unwind inside pcall (pcall-2k). Its bar renders as DNF (error) on the full breakdown chart, and its VM geometric mean (43.69× codegen / 16.92× interp) is computed over the 12 workloads it completes without adding an arbitrary timeout penalty.

Reproducing ​

Run Ouro standalone without third-party dependencies:

sh
luau --codegen -O2 docs/benchmarks/run.luau

Or run the sequential 3-way runner against local Fiu and LuauCeption copies to update results.json and regenerate both SVGs:

sh
python3 docs/benchmarks/bench.py --fiu /path/to/Fiu/Source.luau --luauception /path/to/luauception
python3 docs/benchmarks/chart.py