Skip to content

Add --frontend-threads option to ./x perf - #163671

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
itsjunetime:perf_frontend_threads_opt
Oct 4, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
itsjunetime:perf_frontend_threads_opt

Conversation

@itsjunetime

Copy link
Copy Markdown
Contributor

This just adds an option to pass through the --frontend-threads option to rustc-perf through ./x perf (which option is documented in the rustc-perf repo. Before this, ./x perf had no way of telling rustc-perf how many frontend threads to use, so it always defaulted to 1. This made it a bit more difficult to test perf-related chnages to the parallel frontend.

I tested this option locally and it seems to work perfectly fine.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Oct 2, 2026
@rustbot

rustbot commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Mark-Simulacrum

@maxdexh

maxdexh commented Oct 3, 2026

Copy link
Copy Markdown
Member

Wait, I recognize that username. Hi :D

@itsjunetime

Copy link
Copy Markdown
Contributor Author

Hey! Good to see you around :D

@Kobzol

Kobzol commented Oct 4, 2026

Copy link
Copy Markdown
Member

r? kobzol

Thanks!

@bors r+ rollup

@rust-bors

rust-bors Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 0050bb2 has been approved by Kobzol

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 4, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 4, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #162974 (FCW for `#[panic_handler]` on `unsafe fn`.)
 - #163627 (Add documentation for the `no_main` and `repr` attributes)
 - #163671 (Add `--frontend-threads` option to `./x perf`)
 - #163694 (c_str_alloc_error test: mention why this is mostly Miri-only)
 - #163711 (Stabilize `CStr::display`)
 - #163723 ([tiny] Remove useless `.into()` calls)
@rust-bors
rust-bors Bot merged commit b00e6fe into rust-lang:main Oct 4, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Oct 4, 2026
rust-bors Bot pushed a commit that referenced this pull request Oct 4, 2026
Rollup merge of #163671 - itsjunetime:perf_frontend_threads_opt, r=Kobzol

Add `--frontend-threads` option to `./x perf`

This just adds an option to pass through the `--frontend-threads` option to `rustc-perf` through `./x perf` (which option is documented in the [`rustc-perf` repo](https://github.com/rust-lang/rustc-perf/blob/main/collector/README.md#benchmarking-options). Before this, `./x perf` had no way of telling `rustc-perf` how many frontend threads to use, so it always defaulted to 1. This made it a bit more difficult to test perf-related chnages to the parallel frontend.

I tested this option locally and it seems to work perfectly fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants