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

Delete -Zquery-stats infrastructure #93724

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

Mark-Simulacrum
Copy link
Member

These statistics are computable from the self-profile data and/or ad-hoc collectable as needed, and in the meantime contribute to rustc bootstrap times -- locally, this PR shaves ~2.5% from rustc_query_impl builds in instruction counts.

If this does lose some functionality we want to keep, I think we should migrate it to self-profile (or a similar interface) rather than this ad-hoc reporting.

These statistics are computable from the self-profile data and/or ad-hoc
collectable as needed, and in the meantime contribute to rustc bootstrap times.
@rust-highfive
Copy link
Collaborator

@Mark-Simulacrum: no appropriate reviewer found, use r? to override

@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Feb 7, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 7, 2022
@Mark-Simulacrum
Copy link
Member Author

r? @michaelwoerister perhaps?

@bors try @rust-timer queue

I suspect perf may not show as much of a win in terms of bootstrap time, but might as well run it just to see.

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 7, 2022
@bors
Copy link
Contributor

bors commented Feb 7, 2022

⌛ Trying commit 257839b with merge b2db7d6eecf72e01e8626130060554d689aa73fa...

@bors
Copy link
Contributor

bors commented Feb 7, 2022

☀️ Try build successful - checks-actions
Build commit: b2db7d6eecf72e01e8626130060554d689aa73fa (b2db7d6eecf72e01e8626130060554d689aa73fa)

@rust-timer
Copy link
Collaborator

Queued b2db7d6eecf72e01e8626130060554d689aa73fa with parent 7b43cfc, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b2db7d6eecf72e01e8626130060554d689aa73fa): comparison url.

Summary: This benchmark run shows 3 relevant regressions 😿 to instruction counts.

  • Average relevant regression: 1.0%
  • Largest regression in instruction counts: 1.0% on incr-unchanged builds of ctfe-stress-4 check

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR led to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf +perf-regression

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Feb 7, 2022
@Mark-Simulacrum
Copy link
Member Author

Regression seems reproducible locally but is likely to be optimizer noise. Improvement for rustc_query_impl does seem real, though (-2 seconds, roughly, out of 84).

@Mark-Simulacrum Mark-Simulacrum added the perf-regression-triaged The performance regression has been triaged. label Feb 7, 2022
@michaelwoerister
Copy link
Member

I'm fine with removing this but I want to give at least @cjgillot a chance to weigh in. I don't know who else could be using it. Let's cc @rust-lang/wg-incr-comp: Is anybody still using this?

@cjgillot
Copy link
Contributor

cjgillot commented Feb 8, 2022

I'm not using it. Fine with removing.

@Aaron1011
Copy link
Member

I'm fine with this removal as well

@michaelwoerister
Copy link
Member

OK! @bors r+

@bors
Copy link
Contributor

bors commented Feb 9, 2022

📌 Commit 257839b has been approved by michaelwoerister

@bors bors 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 Feb 9, 2022
@bors
Copy link
Contributor

bors commented Feb 9, 2022

⌛ Testing commit 257839b with merge 9747ee4...

@bors
Copy link
Contributor

bors commented Feb 9, 2022

☀️ Test successful - checks-actions
Approved by: michaelwoerister
Pushing 9747ee4 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 9, 2022
@bors bors merged commit 9747ee4 into rust-lang:master Feb 9, 2022
@rustbot rustbot added this to the 1.60.0 milestone Feb 9, 2022
@Mark-Simulacrum Mark-Simulacrum deleted the drop-query-stats branch February 9, 2022 19:13
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9747ee4): comparison url.

Summary: This benchmark run did not return any relevant results. 44 results were found to be statistically significant but too small to be relevant.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

@rustbot rustbot removed the perf-regression Performance regression. label Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. perf-regression-triaged The performance regression has been triaged. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants