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

Rub come caching on caller_location #129761

Closed
wants to merge 1 commit into from

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Aug 29, 2024

Inspired by the huge perf wins from making track_caller a no-op: #129704, I started poking around and it looks like we have no deduplication of identical panic::Location allocations.

Nora says I can use a query here, but I'm scared of query overhead so I'm going to perf something very crude first.

r? @ghost

@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 Aug 29, 2024
@saethlin saethlin 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 Aug 29, 2024
@saethlin
Copy link
Member 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 Aug 29, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 29, 2024
Rub come caching on caller_location

Inspired by the huge perf wins from making track_caller a no-op: rust-lang#129704, I started poking around and it looks like we have no deduplication of identical `panic::Location` allocations.

Nora says I can use a query here, but I'm scared of query overhead so I'm going to perf something very crude first.

r? `@ghost`
@bors
Copy link
Contributor

bors commented Aug 29, 2024

⌛ Trying commit b691f26 with merge d81126f...

@bors
Copy link
Contributor

bors commented Aug 29, 2024

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (d81126f): comparison URL.

Overall result: no relevant changes - no 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.

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

Instruction count

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

Max RSS (memory usage)

Results (primary 5.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)
5.3% [5.3%, 5.3%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 5.3% [5.3%, 5.3%] 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: missing data
Artifact size: 338.73 MiB -> 338.70 MiB (-0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 30, 2024
@Kobzol
Copy link
Contributor

Kobzol commented Aug 30, 2024

Just noting that the benchmark results here are incomplete, because the master commit against which this try build was compared was not benchmarked properly.

@saethlin
Copy link
Member Author

🤔 Thanks, I thought something looked odd. How did you know that? Did you just notice rustc-perf having trouble?

@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 Aug 31, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 31, 2024
Rub come caching on caller_location

Inspired by the huge perf wins from making track_caller a no-op: rust-lang#129704, I started poking around and it looks like we have no deduplication of identical `panic::Location` allocations.

Nora says I can use a query here, but I'm scared of query overhead so I'm going to perf something very crude first.

r? `@ghost`
@bors
Copy link
Contributor

bors commented Aug 31, 2024

⌛ Trying commit d350a5e with merge e4077d6...

@bors
Copy link
Contributor

bors commented Aug 31, 2024

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

@rust-timer

This comment has been minimized.

@Kobzol
Copy link
Contributor

Kobzol commented Aug 31, 2024

I noticed the bootstrap data missing. Then I clicked on "show all results" and there were less than 100 results, rather than 500+ as is usual.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e4077d6): comparison URL.

Overall result: ❌✅ regressions and improvements - no 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.

@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
Regressions ❌
(secondary)
0.6% [0.4%, 0.8%] 2
Improvements ✅
(primary)
-0.3% [-0.3%, -0.3%] 1
Improvements ✅
(secondary)
-0.4% [-0.4%, -0.4%] 1
All ❌✅ (primary) -0.3% [-0.3%, -0.3%] 1

Max RSS (memory usage)

Results (primary -0.3%, secondary -0.7%)

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)
1.2% [0.4%, 2.1%] 15
Regressions ❌
(secondary)
0.9% [0.5%, 1.1%] 7
Improvements ✅
(primary)
-0.8% [-3.9%, -0.4%] 43
Improvements ✅
(secondary)
-0.9% [-3.5%, -0.4%] 78
All ❌✅ (primary) -0.3% [-3.9%, 2.1%] 58

Cycles

Results (primary 0.4%, secondary 0.2%)

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)
1.0% [0.4%, 4.6%] 27
Regressions ❌
(secondary)
1.1% [0.4%, 6.1%] 64
Improvements ✅
(primary)
-0.7% [-1.8%, -0.4%] 16
Improvements ✅
(secondary)
-0.9% [-5.2%, -0.4%] 49
All ❌✅ (primary) 0.4% [-1.8%, 4.6%] 43

Binary size

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

Bootstrap: 788.226s -> 789.955s (0.22%)
Artifact size: 338.74 MiB -> 338.73 MiB (-0.00%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Aug 31, 2024
@saethlin saethlin closed this Sep 21, 2024
@saethlin saethlin deleted the cacher-location branch September 21, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. 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.

5 participants