Skip to content

Set up the benchmark suite#191

Merged
mtfishman merged 1 commit into
mainfrom
mf/benchmark-suite
Jun 30, 2026
Merged

Set up the benchmark suite#191
mtfishman merged 1 commit into
mainfrom
mf/benchmark-suite

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Replaces the stale ITensorPkgSkeleton benchmark stub with a BenchmarkTools suite covering the core contraction entry points (contract, contract!) across a range of dimensions, so a regression shows up in both the small-tensor regime (dominated by the per-call label bookkeeping) and the large one (dominated by the BLAS call). The suite exposes the SUITE global that AirspeedVelocity.jl's benchpkg expects, and benchmark/README.md documents running it directly and comparing revisions.

The suite is also run once as a smoke test in the package tests, so it cannot silently fall out of sync with the API the way the stub had (it still called the long-removed default_contract_alg).

## Summary

Replaces the stale ITensorPkgSkeleton benchmark stub with a `BenchmarkTools` suite covering the core contraction entry points (`contract`, `contract!`) across a range of dimensions, so a regression shows up in both the small-tensor regime (dominated by the per-call label bookkeeping) and the large one (dominated by the BLAS call). The suite exposes the `SUITE` global that `AirspeedVelocity.jl`'s `benchpkg` expects, and `benchmark/README.md` documents running it directly and comparing revisions.

The suite is also run once as a smoke test in the package tests, so it cannot silently fall out of sync with the API the way the stub had (it still called the long-removed `default_contract_alg`).
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.30%. Comparing base (c3b0232) to head (7c30f15).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
- Coverage   82.62%   82.30%   -0.33%     
==========================================
  Files          22       22              
  Lines         616      616              
==========================================
- Hits          509      507       -2     
- Misses        107      109       +2     
Flag Coverage Δ
docs 29.00% <ø> (ø)

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.

@mtfishman mtfishman merged commit e9318c9 into main Jun 30, 2026
20 of 21 checks passed
@mtfishman mtfishman deleted the mf/benchmark-suite branch June 30, 2026 00:12
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