Skip to content

Benchmark v1.1.0: glua at 1.20x C Lua across the suite, 1.15x on the fast loop - #47

Merged
folbricht merged 1 commit into
mainfrom
benchmarks-1.1.0
Oct 20, 2026
Merged

folbricht merged 1 commit into
mainfrom
benchmarks-1.1.0

Conversation

@folbricht

Copy link
Copy Markdown
Owner

I reran all three benchmark tables on main at 860bcd2 for the v1.1.0 release. The machine was quiet, with the usual powersave governor, and I used the commands in the method section. The README's summary table is updated to match.

Scripts across implementations: glua averages 1.20x C Lua, down from 1.23x.

The other engines came out within 0.02 of their published averages.

glua's two loops:

before now
Fast loop 1.22x 1.15x
Checked loop 1.40x 1.31x
Checked loop while the GC is marking 3.01x 2.82x

Calls between Go and Lua: I traced the two rows that moved before publishing them.

The table rows are pasted from the tools' output. The raw Go results are in the gitignored bench/results/.

…fast loop

All three tables rerun on main at 860bcd2 on a quiet machine, as the method section describes. The method section now says that code layout can move single rows too: the rule rows of the call table are about 15% slower on the fast loop in this build with the same instructions executed, from branch mispredictions in the dispatch.
@folbricht
folbricht merged commit 8976a0a into main Oct 20, 2026
17 checks passed
@folbricht
folbricht deleted the benchmarks-1.1.0 branch October 20, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant