Skip to content

chore: add constant folding benchmarks - #1861

Draft
aborgna-q wants to merge 1 commit into
mainfrom
ab/const-fold-benches
Draft

chore: add constant folding benchmarks#1861
aborgna-q wants to merge 1 commit into
mainfrom
ab/const-fold-benches

Conversation

@aborgna-q

Copy link
Copy Markdown
Collaborator

Constant folding is currently the part of both the Normalize pass and QSystemLLVMPass.

This PR adds benchmarks for two pathological cases:

  • Hugrs with multiple defined functions.
  • Hugrs containing tuple wires with many variants.

We'll add some perf fixes on top of these. Having a separate PR lets codspeed print the actual improvements.

@aborgna-q
aborgna-q requested a review from a team as a code owner July 17, 2026 17:35
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.59%. Comparing base (eab787d) to head (ce9846d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1861   +/-   ##
=======================================
  Coverage   86.59%   86.59%           
=======================================
  Files         202      202           
  Lines       32692    32692           
  Branches    31206    31206           
=======================================
  Hits        28310    28310           
  Misses       3097     3097           
  Partials     1285     1285           
Flag Coverage Δ
python 91.64% <ø> (ø)
qis-compiler 73.60% <ø> (ø)
rust 86.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aborgna-q
aborgna-q marked this pull request as draft July 17, 2026 19:25
@aborgna-q
aborgna-q removed the request for review from nicolaassolini-qntm July 17, 2026 19:26
@aborgna-q
aborgna-q force-pushed the ab/const-fold-benches branch from f43ba89 to ce9846d Compare August 18, 2026 11:02
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