Windows Benchmark Snapshot

March 30, 2026 ยท View on GitHub

This page contains the current Windows benchmark snapshot that used to live in the main README.

Environment:

  • Script runner: run_benchmarks.ps1
  • Platform: Windows
  • CPU: Ryzen 7 5800X
  • Baseline: native Lua 5.5 on the same machine

Method:

  • Values are shown as luars / native Lua * 100
  • 100 means parity with native Lua
  • 120 means luars is about 20% faster
  • 80 means luars is about 20% slower
xychart-beta
    title "luars vs native Lua 5.5 on Windows (Ryzen 7 5800X)"
    x-axis [arith, control, locals, funcs, closures, multiret, tables, tablelib, iters, math, meta, oop, coroutines, errors]
    y-axis "Relative throughput (%)" 0 --> 160
    bar [111, 87, 132, 92, 80, 78, 92, 118, 93, 98, 78, 92, 152, 103]
    line [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]
ScriptRelative throughput
bench_arithmetic.lua111%
bench_control_flow.lua87%
bench_locals.lua132%
bench_functions.lua92%
bench_closures.lua80%
bench_multiret.lua78%
bench_tables.lua92%
bench_table_lib.lua118%
bench_iterators.lua93%
bench_math.lua98%
bench_metatables.lua78%
bench_oop.lua92%
bench_coroutines.lua152%
bench_errors.lua103%

Notes:

  • This is a script-level summary from the current Windows run of run_benchmarks.ps1.
  • String-heavy microbenchmarks are intentionally left out of the chart because several subtests complete too quickly on Windows timer resolution, which can distort summary ratios.
  • For full raw output, run run_benchmarks.ps1 directly and inspect the per-subtest numbers.