Skip to content

Run Duel under ZJIT next to YJIT - #3115

Merged
ericproulx merged 1 commit into
masterfrom
dblock/duel-zjit
Nov 29, 2026
Merged

ericproulx merged 1 commit into
masterfrom
dblock/duel-zjit

Conversation

@dblock

@dblock dblock commented Nov 27, 2026

Copy link
Copy Markdown
Member

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.entry holds { jit: yjit } and { jit: zjit }. Each entry passes jit: and a report: named after it to Duel's reusable workflow (v0.3.0). The Perf comment workflow already collects every duel-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 names Duel (yjit) / … and Duel (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: actionlint passes on perf.yml, and the matrix parses as intended. bundle exec rubocop reports 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

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>
@ericproulx
ericproulx merged commit 82d6516 into master Nov 29, 2026
28 checks passed
@ericproulx
ericproulx deleted the dblock/duel-zjit branch November 29, 2026 11:45
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.

2 participants