Skip to content

Run benchmarks in "test" mode, in CI - #20114

Merged
stuhood merged 4 commits into
mainfrom
huonw/20067-benchmarks-ci
Oct 31, 2023
Merged

Run benchmarks in "test" mode, in CI#20114
stuhood merged 4 commits into
mainfrom
huonw/20067-benchmarks-ci

Conversation

@huonw

@huonw huonw commented Oct 29, 2023

Copy link
Copy Markdown
Contributor

Cargo/criterion supports running benchmarks in "test" mode, where they only execute once and don't actually benchmark, but at least validate that the code seems to run. This fixes #20067 by switching CI to do this.

The store benchmark (the only benchmarks at the moment) seems to take ~80s to run in CI. Is it worth it to avoid problems like #20057?

@huonw huonw added the category:internal CI, fixes for not-yet-released features, etc. label Oct 29, 2023
@huonw huonw changed the title Experiment: Run benchmarks in "test" mode, in CI Run benchmarks in "test" mode, in CI Oct 29, 2023
@huonw
huonw marked this pull request as ready for review October 29, 2023 05:28
@huonw
huonw requested review from benjyw and stuhood October 29, 2023 05:29

@stuhood stuhood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@stuhood
stuhood enabled auto-merge (squash) October 31, 2023 18:58
@stuhood
stuhood merged commit 75c2185 into main Oct 31, 2023
@stuhood
stuhood deleted the huonw/20067-benchmarks-ci branch October 31, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:internal CI, fixes for not-yet-released features, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate benchmarks run successfully in CI

2 participants