Skip to content

Update benchmark suite to current TensorKit API#477

Merged
lkdvos merged 1 commit into
mainfrom
ld-benchmark-fixes
Jul 9, 2026
Merged

Update benchmark suite to current TensorKit API#477
lkdvos merged 1 commit into
mainfrom
ld-benchmark-fixes

Conversation

@lkdvos

@lkdvos lkdvos commented Jul 9, 2026

Copy link
Copy Markdown
Member

The benchmark suite was still written against the pre-0.13 API and no longer loads with TensorKit 0.17. This updates it:

  • Tensor(randn, T, space)randn(T, space) in TensorNetworkBenchmarks and comparisons/tensorkit_timers.jl (the old function-first constructors were removed)
  • tsvd!svd_compact! in LinalgBenchmarks (factorizations now go through MatrixAlgebraKit)
  • Removed TensorOperations.enable_cache/empty!(TensorOperations.cache) from comparisons/run_tensorkit.jl (the global cache API no longer exists in TensorOperations)

Verified by loading the full SUITE and running one benchmark from every group (linalg/mul, linalg/svd, indexmanipulations/permute, tensornetworks/{mpo,pepo,mera}) against the current main, plus exercising all three comparison timers.

🤖 Generated with Claude Code

- Replace removed `Tensor(randn, T, space)` constructors with `randn(T, space)`
- Replace removed `tsvd!` with `svd_compact!` (MatrixAlgebraKit API)
- Drop removed `TensorOperations.enable_cache`/`cache` calls from the
  comparison runner

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lkdvos lkdvos marked this pull request as ready for review July 9, 2026 13:15
@lkdvos lkdvos merged commit b9b8dfc into main Jul 9, 2026
1 of 7 checks passed
@lkdvos lkdvos deleted the ld-benchmark-fixes branch July 9, 2026 13:17
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 55 files with indirect coverage changes

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

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