Skip to content

Add --benchmarks flag to limit what benchmarks pyperformance runs#55

Merged
kdvalin merged 2 commits into
mainfrom
feat/selected-benchmarks
Jan 15, 2026
Merged

Add --benchmarks flag to limit what benchmarks pyperformance runs#55
kdvalin merged 2 commits into
mainfrom
feat/selected-benchmarks

Conversation

@kdvalin

@kdvalin kdvalin commented Jan 6, 2026

Copy link
Copy Markdown
Member

Description

This PR adds the --benchmarks flag which takes a comma separated list of pyperformance benchmark names. This flag will only run the specified benchmarks.

The previous behavior of running all the benchmarks is the default, so any existing automation should not be impacted

Before/After Comparison

Before

The only behavior of this wrapper is to run all the pyperformance benchmarks.

After

The default behavior of this wrapper is to run all the pyperformance benchmarks.

The user can use --benchmarks <name1,name2,...> to provide a list of benchmarks that they wish to run. This is useful for development and for skipping benchmarks that may have a longer runtime.

Clerical Stuff

This closes #54

Relates to JIRA: RPOPC-756

@kdvalin kdvalin requested a review from a team January 6, 2026 18:55
@github-actions

github-actions Bot commented Jan 6, 2026

Copy link
Copy Markdown

This relates to RPOPC-756

@frival frival left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Query on how we handle the benchmark list - right now it's not sanitized which might not be what we want to do.

Comment thread pyperf/pyperf_run
When running using `--pyperf_benchmarks`, it will now check against
`pyperformance list` to ensure that an invalid benchmark was not
provided.  Current behaviour is to exit when at least 1 benchmark is not
valid, but the script will output all invalid benchmarks.

@frival frival left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, thank you for not forcing innocent souls to read a python dump to figure out a typo.

@kdvalin kdvalin merged commit 63bfbeb into main Jan 15, 2026
2 checks passed
@kdvalin kdvalin deleted the feat/selected-benchmarks branch January 15, 2026 14: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.

Add support for running only specified subbenchmarks

2 participants