Repository navigation
Run Duel under ZJIT next to YJIT - #3115
Merged
Merged
Conversation
A change can be faster under one JIT and slower under the other, so the Perf workflow runs the same Duel benchmarks under both, as one matrix job with a named report for each JIT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A change can be faster under one JIT and slower under the other, so the Perf workflow now runs the same Duel benchmarks under ZJIT as well as YJIT, like hashie/hashie#660.
Unlike the hashie version, this uses one matrix job instead of two copies of the same job:
matrix.entryholds{ jit: yjit }and{ jit: zjit }. Each entry passesjit:and areport:named after it to Duel's reusable workflow (v0.3.0). The Perf comment workflow already collects everyduel-report*artifact, so it comments with both reports, each under its own name.fail-fast: false, so a regression under one JIT doesn't cancel the other JIT's report.name: Duel (${{ matrix.entry.jit }})gives the checks the namesDuel (yjit) / …andDuel (zjit) / …. Master doesn't require any status checks, so the rename affects nothing.CONTRIBUTING now says the benchmarks run once under YJIT and once under ZJIT.
Validation:
actionlintpasses onperf.yml, and the matrix parses as intended.bundle exec rubocopreports no offenses. I couldn't run the benchmarks under ZJIT locally because the local Ruby 4.0.9 was built without ZJIT, so this PR's own Perf run is the end-to-end check.This PR was written by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code