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

proc_macro bridge fxhash perf testing #134434

Closed
wants to merge 1 commit into from

Conversation

lukas-code
Copy link
Member

@lukas-code lukas-code commented Dec 17, 2024

results:

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 17, 2024
@lukas-code lukas-code added S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 17, 2024
@lukas-code
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 Dec 17, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 17, 2024
`proc_macro`: add dependency on `rustc-hash` and update to 2.0

let's see if this affects perf at all...

`rustc-hash` diff: rust-lang/rustc-hash@master...lukas-code:rustc-hash:dep-of-std

r? ghost
@bors
Copy link
Contributor

bors commented Dec 17, 2024

⌛ Trying commit 51749d0 with merge 0511dbb...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Dec 17, 2024

☀️ Try build successful - checks-actions
Build commit: 0511dbb (0511dbb04f6ebaa3f562d4a50ac346f618923a5a)

@rust-timer

This comment has been minimized.

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Dec 17, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (0511dbb): 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 (secondary -3.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)
- - 0
Improvements ✅
(secondary)
-3.4% [-4.6%, -2.3%] 2
All ❌✅ (primary) - - 0

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: 770.185s -> 770.679s (0.06%)
Artifact size: 330.28 MiB -> 330.35 MiB (0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 17, 2024
@rust-log-analyzer

This comment has been minimized.

@lukas-code
Copy link
Member Author

hmm, no changes at at all. let's see if we can just use the default hasher then: @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 Dec 17, 2024
@bors
Copy link
Contributor

bors commented Dec 17, 2024

⌛ Trying commit 49843b2 with merge 66534ef...

bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 17, 2024
`proc_macro`: add dependency on `rustc-hash` and update to 2.0

let's see whether this affects perf at all...

`rustc-hash` diff: rust-lang/rustc-hash@master...lukas-code:rustc-hash:dep-of-std

r? ghost
@bors
Copy link
Contributor

bors commented Dec 17, 2024

☀️ Try build successful - checks-actions
Build commit: 66534ef (66534ef0b4abdb0b10612fc66c0dd17f03e62688)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (66534ef): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

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 the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.3% [0.2%, 0.3%] 2
Regressions ❌
(secondary)
1.0% [0.5%, 1.6%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 1
All ❌✅ (primary) 0.3% [0.2%, 0.3%] 2

Max RSS (memory usage)

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

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: 769.242s -> 769.828s (0.08%)
Artifact size: 330.31 MiB -> 330.32 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 Dec 18, 2024
@tgross35
Copy link
Contributor

I wonder if the perf suite just isn't exercising proc macros very much. Using the builtin HashMap would be a nice cleanup if there aren't any significant regressions.

@lukas-code
Copy link
Member Author

I was just about to close, but if you want to keep this, then r? @tgross35 i guess

@lukas-code lukas-code changed the title proc_macro: add dependency on rustc-hash and update to 2.0 proc_macro bridge: remove fxhash Dec 18, 2024
@lukas-code lukas-code added T-libs Relevant to the library team, which will review and decide on the PR/issue. and removed A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Dec 18, 2024
@tgross35
Copy link
Contributor

Well, the regressions aren't huge but probably enough that removing ~100 LOC isn't worth it. I guess you can close this if that was what you intended.

@lukas-code
Copy link
Member Author

Alright, closing then.

@lukas-code lukas-code closed this Dec 18, 2024
@lukas-code lukas-code deleted the proc_macro-hash-v2 branch December 18, 2024 01:39
@lukas-code lukas-code changed the title proc_macro bridge: remove fxhash proc_macro bridge fxhash perf testing Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants