Skip to content

test: Benchmark checking and compilation for tracing workloads#1880

Merged
maximilianruesch merged 7 commits into
mainfrom
mr/chore/tracing-benchmarks
Jun 17, 2026
Merged

test: Benchmark checking and compilation for tracing workloads#1880
maximilianruesch merged 7 commits into
mainfrom
mr/chore/tracing-benchmarks

Conversation

@maximilianruesch

@maximilianruesch maximilianruesch commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Prepares improvements to comptime / tracing by adding two new benchmarks for checking and compiling @guppy.comptime. Note that this bumps the benchmark time by 1 minute (up to 18 from 17). This is due to the mode being simulation for stability / hardware agnostic behaviour, rather than walltime, slowing benchmarking significantly.

As a driveby, limits the number of concurrent benchmark runs on PRs to 1, cancelling those in progress, since they were hogging runners without real reason.

Closes #1839

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchmr/chore/tracing-benchmarks
TestbedLinux
Click to view all benchmark results
Benchmarkhugr_bytesBenchmark Result
bytes x 1e3
(Result Δ%)
Upper Boundary
bytes x 1e3
(Limit %)
hugr_nodesBenchmark Result
nodes
(Result Δ%)
Upper Boundary
nodes
(Limit %)
tests/benchmarks/test_big_array.py::test_big_array_compile📈 view plot
🚷 view threshold
154.02 x 1e3
(0.00%)Baseline: 154.02 x 1e3
155.56 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
6,630.00
(0.00%)Baseline: 6,630.00
6,696.30
(99.01%)
tests/benchmarks/test_ctrl_flow.py::test_many_ctrl_flow_compile📈 view plot
🚷 view threshold
27.71 x 1e3
(0.00%)Baseline: 27.71 x 1e3
27.99 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
1,051.00
(0.00%)Baseline: 1,051.00
1,061.51
(99.01%)
tests/benchmarks/test_queue_push_pop.py::test_queue_push_benchmark_compile📈 view plot
🚷 view threshold
10.09 x 1e3
(+0.01%)Baseline: 10.09 x 1e3
10.19 x 1e3
(99.02%)
📈 view plot
🚷 view threshold
301.00
(0.00%)Baseline: 301.00
304.01
(99.01%)
tests/benchmarks/test_queue_push_pop.py::test_queue_push_pop_benchmark_compile📈 view plot
🚷 view threshold
13.70 x 1e3
(0.00%)Baseline: 13.70 x 1e3
13.83 x 1e3
(99.01%)
📈 view plot
🚷 view threshold
420.00
(0.00%)Baseline: 420.00
424.20
(99.01%)
🐰 View full continuous benchmarking report in Bencher

@codecov-commenter

codecov-commenter commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.90%. Comparing base (68b217c) to head (bbc8341).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1880   +/-   ##
=======================================
  Coverage   92.90%   92.90%           
=======================================
  Files         146      146           
  Lines       13801    13801           
=======================================
  Hits        12822    12822           
  Misses        979      979           

☔ 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.

@codspeed-hq

codspeed-hq Bot commented Jun 17, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 9 untouched benchmarks
🆕 2 new benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
🆕 test_circuit_comptime_check N/A 3.6 ms N/A
🆕 test_circuit_comptime_compile N/A 1.7 s N/A

Comparing mr/chore/tracing-benchmarks (bbc8341) with main (68b217c)

Open in CodSpeed

@maximilianruesch maximilianruesch marked this pull request as ready for review June 17, 2026 14:06
@maximilianruesch maximilianruesch requested a review from a team as a code owner June 17, 2026 14:06
@maximilianruesch maximilianruesch requested review from ferbetanzo and mark-koch and removed request for mark-koch June 17, 2026 14:06
@maximilianruesch maximilianruesch changed the title test: Benchmark tracing checking and compilation test: Benchmark checking and compilation for tracing workloads Jun 17, 2026

@ferbetanzo ferbetanzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small question.

Comment thread tests/benchmarks/test_tracing.py Outdated

@ferbetanzo ferbetanzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you!

@nicolaassolini-qntm nicolaassolini-qntm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@maximilianruesch maximilianruesch added this pull request to the merge queue Jun 17, 2026
Merged via the queue into main with commit e2c7014 Jun 17, 2026
13 checks passed
@maximilianruesch maximilianruesch deleted the mr/chore/tracing-benchmarks branch June 17, 2026 15:42
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.

[Maintenance]: Comptime / Tracing benchmarks

4 participants