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

Fix performance regression with #[instrument] #89363

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Sep 29, 2021

linked tracing PR: tokio-rs/tracing#1600

regression introduced by #89048

@oli-obk
Copy link
Contributor Author

oli-obk commented Sep 29, 2021

@bors try @rust-timer queue

@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 Sep 29, 2021
@bors
Copy link
Contributor

bors commented Sep 29, 2021

⌛ Trying commit 30c3b7e0fe425917bd8356ed3334b216243b3e96 with merge b5602a152eaddec13f5618989f4828d111cdfef2...

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Sep 29, 2021

💔 Test failed - checks-actions

@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 29, 2021
@rust-log-analyzer

This comment has been minimized.

@oli-obk
Copy link
Contributor Author

oli-obk commented Sep 29, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@bors
Copy link
Contributor

bors commented Sep 29, 2021

⌛ Trying commit a9076811504e29807cde539aeeae2b4c9ecc530e with merge fa066f98f2e0ca15f41722c40c5cee5c7d71fddb...

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Sep 29, 2021

💔 Test failed - checks-actions

@oli-obk
Copy link
Contributor Author

oli-obk commented Sep 29, 2021

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

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

@bors
Copy link
Contributor

bors commented Sep 29, 2021

⌛ Trying commit d40c21b734cb5e7d1689d85e5fb5022018a525a6 with merge 3faf913e5755711caf4fddb8a822679e4584afbc...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Sep 29, 2021

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

@rust-timer
Copy link
Collaborator

Queued 3faf913e5755711caf4fddb8a822679e4584afbc with parent 50f9f78, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (3faf913e5755711caf4fddb8a822679e4584afbc): comparison url.

Summary: This change led to very large relevant mixed results 🤷 in compiler performance.

  • Very large improvement in instruction counts (up to -10.8% on full builds of ctfe-stress-4)
  • Large regression in instruction counts (up to 1.3% on incr-unchanged builds of helloworld)

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. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Sep 29, 2021
@oli-obk oli-obk changed the title [WIP] DO NOT MERGE, perf test tracing fix Fix performance regression with #[instrument] Oct 2, 2021
@oli-obk
Copy link
Contributor Author

oli-obk commented Oct 2, 2021

r? rust-lang/compiler

@oli-obk oli-obk removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 3, 2021
@joshtriplett
Copy link
Member

Reviewing the results, this looks like a substantial improvement.

@Mark-Simulacrum
Copy link
Member

I do note that tracing-subscriber now takes ~1.8x as long to compile -- some of that might be noise, but maybe worth mentioning upstream.

The minor performance regressions on a number of benchmarks do seem to be outweighed by the far larger and more consistent wins, though, so this seems good to merge to me in the meantime - we can always bump again if there's further improvements (e.g., to tracing-subscriber compile times).

@bors r+

@bors
Copy link
Contributor

bors commented Oct 4, 2021

📌 Commit 69274aa has been approved by Mark-Simulacrum

@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 Oct 4, 2021
@bors
Copy link
Contributor

bors commented Oct 5, 2021

⌛ Testing commit 69274aa with merge 25ec827...

@bors
Copy link
Contributor

bors commented Oct 5, 2021

☀️ Test successful - checks-actions
Approved by: Mark-Simulacrum
Pushing 25ec827 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 5, 2021
@bors bors merged commit 25ec827 into rust-lang:master Oct 5, 2021
@rustbot rustbot added this to the 1.57.0 milestone Oct 5, 2021
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (25ec827): comparison url.

Summary: This change led to very large relevant improvements 🎉 in compiler performance.

  • Very large improvement in instruction counts (up to -11.3% on full builds of ctfe-stress-4)

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 Oct 5, 2021
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. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants