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

Miscellaneous inlining improvements #99028

Merged
merged 1 commit into from
Jul 9, 2022
Merged

Miscellaneous inlining improvements #99028

merged 1 commit into from
Jul 9, 2022

Conversation

tmiasko
Copy link
Contributor

@tmiasko tmiasko commented Jul 7, 2022

Add #[inline] to a few trivial non-generic methods from a perf report
that otherwise wouldn't be candidates for inlining.

Add `#[inline]` to a few trivial non-generic methods from a perf report
that otherwise wouldn't be candidates for inlining.
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 7, 2022
@rust-highfive
Copy link
Collaborator

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 7, 2022
@compiler-errors
Copy link
Member

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

bors commented Jul 7, 2022

⌛ Trying commit 87374de with merge e30db7aa9aa2bcbb1ee9d57b6c26e0fa9c522740...

@bors
Copy link
Contributor

bors commented Jul 7, 2022

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

@rust-timer
Copy link
Collaborator

Queued e30db7aa9aa2bcbb1ee9d57b6c26e0fa9c522740 with parent 3e51277, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e30db7aa9aa2bcbb1ee9d57b6c26e0fa9c522740): comparison url.

Instruction count

  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: 🎉 relevant improvements found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
0.3% 0.4% 7
Improvements 🎉
(primary)
-0.4% -0.9% 121
Improvements 🎉
(secondary)
-0.6% -1.2% 64
All 😿🎉 (primary) -0.4% -0.9% 121

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results
  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: 🎉 relevant improvements found
mean1 max count2
Regressions 😿
(primary)
2.1% 2.1% 1
Regressions 😿
(secondary)
N/A N/A 0
Improvements 🎉
(primary)
-1.9% -3.0% 10
Improvements 🎉
(secondary)
-2.2% -2.5% 6
All 😿🎉 (primary) -1.5% -3.0% 11

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 may lead to changes in compiler perf.

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

Footnotes

  1. the arithmetic mean of the percent change 2

  2. number of relevant changes 2

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 8, 2022
@estebank
Copy link
Contributor

estebank commented Jul 8, 2022

Nothing huge, but pretty consistent win. CC @nnethercote

@bors r+

@bors
Copy link
Contributor

bors commented Jul 8, 2022

📌 Commit 87374de has been approved by estebank

It is now in the queue for this repository.

@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 Jul 8, 2022
@nnethercote
Copy link
Contributor

Nice work. Which profiler did you use to find these?

@bors
Copy link
Contributor

bors commented Jul 9, 2022

⌛ Testing commit 87374de with merge 86b8dd5...

@bors
Copy link
Contributor

bors commented Jul 9, 2022

☀️ Test successful - checks-actions
Approved by: estebank
Pushing 86b8dd5 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 9, 2022
@bors bors merged commit 86b8dd5 into rust-lang:master Jul 9, 2022
@rustbot rustbot added this to the 1.64.0 milestone Jul 9, 2022
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (86b8dd5): comparison url.

Instruction count

  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: mixed results
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
0.7% 1.4% 13
Improvements 🎉
(primary)
-0.4% -0.9% 124
Improvements 🎉
(secondary)
-0.5% -1.0% 62
All 😿🎉 (primary) -0.4% -0.9% 124

Max RSS (memory usage)

Results
  • Primary benchmarks: no relevant changes found
  • Secondary benchmarks: 😿 relevant regressions found
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
1.8% 2.7% 2
Improvements 🎉
(primary)
N/A N/A 0
Improvements 🎉
(secondary)
N/A N/A 0
All 😿🎉 (primary) N/A N/A 0

Cycles

Results
  • Primary benchmarks: 🎉 relevant improvements found
  • Secondary benchmarks: mixed results
mean1 max count2
Regressions 😿
(primary)
N/A N/A 0
Regressions 😿
(secondary)
1.7% 1.7% 1
Improvements 🎉
(primary)
-2.1% -3.7% 15
Improvements 🎉
(secondary)
-2.9% -3.3% 2
All 😿🎉 (primary) -2.1% -3.7% 15

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

@rustbot label: -perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@tmiasko
Copy link
Contributor Author

tmiasko commented Jul 12, 2022

Nice work. Which profiler did you use to find these?

perf

@tmiasko tmiasko deleted the inline branch July 12, 2022 21:37
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. 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