Registry Mirror
Skip to content

Conversation

@headtr1ck

@headtr1ck headtr1ck commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Use the decorators from asv_runner.benchmarks.mark in the asv benchmarks.

  • Replace the custom parameterized helper with parameterize.
  • Replace the _skip_slow() calls in setup with a skip_slow decorator, so slow benchmarks aren't discovered at all with ASV_SKIP_SLOW=1 (CI).
  • Use skip_for_params for the cumsum / 2D groupby combinations, and skip_benchmark for the DataFrame groupby benchmarks that raised in their body (a failure, not a skip, since asv 0.5).
  • Sort _ENGINES in dataset_io.py, whose order depended on the hash seed.
  • Version-dependent skips (e.g. missing rolling methods) still raise NotImplementedError in setup, since the decorators are evaluated once, when asv discovers the benchmarks.

The discovered benchmarks, their parameters and the benchmarks run with ASV_SKIP_SLOW=1 are unchanged, apart from the slow ones no longer being discovered.

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.
    • Tools: Claude Code with Opus 5.5

🤖 Generated with Claude Code

@headtr1ck headtr1ck added the run-benchmark Run the ASV benchmark workflow label Oct 12, 2026
headtr1ck and others added 2 commits October 12, 2026 11:32
Replace the custom `parameterized` helper with
`asv_runner.benchmarks.mark.parameterize`, and the `_skip_slow()` calls in
`setup` with a `skip_slow` decorator, so slow benchmarks are not discovered at
all when `ASV_SKIP_SLOW=1`. Static parameter skips use `skip_for_params`, and
the DataFrame groupby benchmarks that raised in their body (a failure, not a
skip, since asv 0.5) use `skip_benchmark`.

Also sort `_ENGINES`, whose order depended on the hash seed.

Closes pydata#8353

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
@headtr1ck
headtr1ck force-pushed the asv-runner-decorators branch from 752173e to aa54d47 Compare October 12, 2026 09:32
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

😴 No significant changes. The benchmarks took a nap.

Comparing 1c5be1b0 (this PR merged into the base branch) with bdefbed7 (base branch).
Only changes by more than a factor of 1.5 are shown, see the workflow run for all results.

@headtr1ck headtr1ck added CI Continuous Integration tools plan to merge Final call for comments and removed topic-performance labels Oct 12, 2026
@headtr1ck
headtr1ck enabled auto-merge (squash) October 13, 2026 07:11
@headtr1ck
headtr1ck merged commit 357efad into pydata:main Oct 13, 2026
44 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tools plan to merge Final call for comments run-benchmark Run the ASV benchmark workflow topic-performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update benchmark suite for asv 0.6.1

1 participant