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

[perf] More span update benchmarking #126591

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

petrochenkov
Copy link
Contributor

@petrochenkov petrochenkov commented Jun 17, 2024

@rustbot
Copy link
Collaborator

rustbot commented Jun 17, 2024

r? @nnethercote

rustbot has assigned @nnethercote.
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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 17, 2024
@petrochenkov
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 17, 2024
@petrochenkov petrochenkov added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 17, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 17, 2024
@bors
Copy link
Contributor

bors commented Jun 17, 2024

⌛ Trying commit 7e4f176 with merge 725e23c...

@rust-log-analyzer

This comment has been minimized.

@petrochenkov
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jun 17, 2024

⌛ Trying commit 91d05ba with merge 0659a9a...

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 17, 2024
@bors
Copy link
Contributor

bors commented Jun 17, 2024

☀️ Try build successful - checks-actions
Build commit: 0659a9a (0659a9a7205e944bd6c6f9b79411797af5772418)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0659a9a): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

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.

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-perf +perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.3% [0.3%, 0.4%] 3
Regressions ❌
(secondary)
2.2% [1.3%, 3.6%] 6
Improvements ✅
(primary)
-0.3% [-0.3%, -0.3%] 1
Improvements ✅
(secondary)
-0.3% [-0.6%, -0.2%] 15
All ❌✅ (primary) 0.2% [-0.3%, 0.4%] 4

Max RSS (memory usage)

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

Cycles

Results (secondary -2.3%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.3% [-2.3%, -2.3%] 1
All ❌✅ (primary) - - 0

Binary size

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

Bootstrap: 669.445s -> 669.827s (0.06%)
Artifact size: 320.51 MiB -> 320.50 MiB (-0.00%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Jun 17, 2024
@nnethercote
Copy link
Contributor

Nice simplification.

@bors r+

@bors
Copy link
Contributor

bors commented Jun 18, 2024

📌 Commit 91d05ba has been approved by nnethercote

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 18, 2024
@bors
Copy link
Contributor

bors commented Jun 18, 2024

⌛ Testing commit 91d05ba with merge 737e423...

@bors
Copy link
Contributor

bors commented Jun 18, 2024

☀️ Test successful - checks-actions
Approved by: nnethercote
Pushing 737e423 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jun 18, 2024
@bors bors merged commit 737e423 into rust-lang:master Jun 18, 2024
7 checks passed
@rustbot rustbot added this to the 1.81.0 milestone Jun 18, 2024
@petrochenkov
Copy link
Contributor Author

petrochenkov commented Jun 18, 2024

@nnethercote
I never intended to merge this, it was just an experiment, and I didn't test everything I wanted.
I've even explicitly set the label to waiting on author.

@nnethercote
Copy link
Contributor

Waiting on author is not an obvious signal, it's very easy to overlook. Next time I suggest one or more of the following.

  • Mark it as a draft.
  • Put "[DO NOT MERGE]" or "[EXPERIMENT]" or something more obvious in the title.
  • Write a better PR description.
  • Use r? @ghost as the reviewer.

@petrochenkov
Copy link
Contributor Author

Labels are important, most important from what you've listed, and they also subsume the draft mark entirely as a better tool.
Merging a PR without a description is also pretty questionable.
I guess I'll use more big letters as a precaution next time.

@petrochenkov
Copy link
Contributor Author

petrochenkov commented Jun 18, 2024

issue-58319 has a very significant regression (5-10x significance factor), so I expected it to have some unusual statistics, e.g. many PartiallyInterneds.
But that's not the case, all the updates in that test are still InlineCtxts!
Apparently it's just the same kind of inlining noise as in other cases.

Upd: same for bitmaps.
So it's fine to merge the change itself, I'll just need to add some explanatory comments.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (737e423): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.3% [0.3%, 0.4%] 5
Regressions ❌
(secondary)
2.3% [1.4%, 3.6%] 6
Improvements ✅
(primary)
-0.3% [-0.3%, -0.3%] 1
Improvements ✅
(secondary)
-0.3% [-0.4%, -0.2%] 14
All ❌✅ (primary) 0.2% [-0.3%, 0.4%] 6

Max RSS (memory usage)

Results (primary -4.4%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-4.4% [-4.4%, -4.4%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -4.4% [-4.4%, -4.4%] 1

Cycles

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

Binary size

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

Bootstrap: 671.082s -> 670.264s (-0.12%)
Artifact size: 320.51 MiB -> 320.46 MiB (-0.02%)

@lqd
Copy link
Member

lqd commented Jun 18, 2024

Labels are important, most important from what you've listed, and they also subsume the draft mark entirely as a better tool.

IIRC bors will not merge a PR in draft status, or a PR with WIP in its title (maybe even with DO NOT MERGE), so these are preferred to labels as it’s not possible for this situation to happen

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 Performance regression. 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.

7 participants