Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize configuration of benchmarks #1637

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jul 4, 2023

We will soon want to execute both compile and runtime benchmarks on multiple places. The current configuration of benchmarks was quite ad hoc. This PR introduces specialized config structs for both compile and runtime benchmarks (and also for configuration which is shared amongst them). It is a bit verbose, but also explicit.

All the call sites in collector are transitioned to using the run_benchmarks function, but so far runtime benchmarks only run for bench_runtime_local and bench_published.

We will soon want to execute both compile and runtime benchmarks on multiple places. The current configuration of benchmarks was quite ad hoc. This PR introduces specialized config structs for both compile and runtime benchmarks (and also for configuration which is shared amongst them). It is a bit verbose, but also explicit.

Eventually, most of the call sites in `collector` should transition to using the `run_benchmarks` function, but so far runtime benchmarks only run for `bench_runtime_local` and `bench_published`.
This also makes sure that the duration of the collection is recorded into the DB.
@Kobzol Kobzol requested a review from nnethercote July 4, 2023 19:26
@Kobzol Kobzol merged commit cf98095 into rust-lang:master Jul 5, 2023
@Kobzol Kobzol deleted the collector-refactor branch July 5, 2023 20:55
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.

2 participants