Set up benchmarks with AirspeedVelocity.jl#6
Merged
Conversation
These workflows use the outdated BenchmarkCI package which doesn't work correctly. They will be replaced with AirspeedVelocity.jl benchmarks. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds benchmarks for: - Swap traversal (moving operations around) - No-op traversal (visiting without changes) - Combine traversal (reducing circuit by merging) - Mixed circuits with different gate types - Direction comparison (left vs right traversal) Uses BenchmarkTools.jl with evals=1 since traversal modifies circuits in-place. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Runs benchmarks on PRs and posts results as PR comments. Uses the MilesCranmer/AirspeedVelocity.jl action. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add benchmark folder to project structure - Add benchmarks section with local run instructions - Document when to add benchmarks and file structure guidelines - Add workflow step to remind about benchmarks for new functionality Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6 +/- ##
=======================================
Coverage 78.60% 78.60%
=======================================
Files 4 4
Lines 187 187
=======================================
Hits 147 147
Misses 40 40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
Benchmark coverage
Current benchmarks cover the
traversalfunction:Test plan
julia -tauto --project=benchmark -e 'include("benchmark/benchmarks.jl"); run(SUITE)'🤖 Generated with Claude Code