Skip to content

GH-52359: [Python] Re-enable ASV benchmark setup - #55812

Open
jorisvandenbossche wants to merge 1 commit into
apache:mainfrom
jorisvandenbossche:python-asv-config
Open

jorisvandenbossche wants to merge 1 commit into
apache:mainfrom
jorisvandenbossche:python-asv-config

Conversation

@jorisvandenbossche

@jorisvandenbossche jorisvandenbossche commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

Adding back the ASV configuration such that we can run the existing benchmarks we have.

What changes are included in this PR?

This adds the asv config file, and also an environment definition for the benchmarks. I have not yet added the build scripts to install arrow and pyarrow in that environment, as we had before (removed in #49047), but depending on how we are doing to run this through benchx, that might not be needed.

Are these changes tested?

Are there any user-facing changes?

No

Was AI used for this PR?

No

Copilot AI balanced review requested due to automatic review settings November 27, 2026 10:36

Copilot AI 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.

🟡 Changes recommended

The benchmark environment lacks pytest, which pyarrow.tests.util imports unconditionally, causing benchmark discovery to fail with ModuleNotFoundError in a fresh environment.

1 open issue
What changed in this PR

Restores ASV configuration for Arrow’s existing Python benchmarks to support manual performance comparisons. Native Arrow and PyArrow build scripts remain deferred.

Changes:

  • Adds ASV configuration using the rattler environment backend.
  • Defines benchmark dependencies in a conda environment file.
  • Ignores generated ASV environments, results, and reports.
File Description
python/​benchmarks/​environment.yml Defines Python, build, and benchmark dependencies.
python/​asv.conf.json Configures the repository, environment, benchmark discovery, and output paths.
python/​.gitignore Excludes generated .asv artifacts.

Review effort: Balanced

Comment thread python/benchmarks/environment.yml Resolved
@jorisvandenbossche

Copy link
Copy Markdown
Member Author

Apparently the benchx runner runs the benchmarks without requiring asv under the hood, so it also does not need this configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python] Restore ASV benchmark setup

2 participants