perf: add direct runtime dispatch parity harness#5
Draft
besmpl wants to merge 28 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
The previous comparison included Luau CLI startup and compilation, selected the wrong Phase 1 workload, and could overwrite noisy retries. The VM also paid generic tracing and state-management costs in normal execution. This slice establishes trustworthy measurement and removes the first structural dispatch costs without workload-specific runtime behavior.
Impact
The last valid quiet-run Phase 1 evidence measured
arithmetic_forat 1.6865x median and 1.7236x p90 versus pinned Luau 0.728, with the production symbol reduced to 8,272 bytes and stack reservation to 1,680 bytes. Phases 2-4 and final 0.95x/1.00x Scenario parity remain unfinished.The v5 harness refused live sampling after the machine stayed above its load/CPU limits for 600 seconds; it created no benchmark attempt. This avoids presenting contaminated measurements as current evidence.
Verification
scripts/check-runtime-parity --self-testgo test -vet=off -count=1 ./...git diff --checkLocal
.simplepowerjournals and ignored raw benchmark artifacts are intentionally not committed.