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

Disable assert_unsafe_precondition to measure compile-time cost #123679

Closed
wants to merge 1 commit into from

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented Apr 9, 2024

r? ghost

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 9, 2024
@saethlin
Copy link
Member Author

saethlin commented Apr 9, 2024

@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 Apr 9, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 9, 2024
Disable assert_unsafe_precondition to measure compile-time cost

r? ghost
@bors
Copy link
Contributor

bors commented Apr 9, 2024

⌛ Trying commit 62333ec with merge 754b460...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Apr 9, 2024

💔 Test failed - checks-actions

@bors bors 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 Apr 9, 2024
@rust-log-analyzer

This comment has been minimized.

@saethlin saethlin force-pushed the measure-ub-checks branch from 62333ec to 38bb88c Compare April 9, 2024 15:11
@rust-log-analyzer

This comment has been minimized.

@saethlin saethlin force-pushed the measure-ub-checks branch from 38bb88c to fbf9acf Compare April 9, 2024 15:16
@saethlin
Copy link
Member Author

saethlin commented Apr 9, 2024

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Apr 9, 2024

⌛ Trying commit fbf9acf with merge 45b300c...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 9, 2024
Disable assert_unsafe_precondition to measure compile-time cost

r? ghost
@bors
Copy link
Contributor

bors commented Apr 9, 2024

☀️ Try build successful - checks-actions
Build commit: 45b300c (45b300c6c1ec060f721630f74efbb9ff96a6a727)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (45b300c): 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.8% [0.3%, 2.3%] 11
Regressions ❌
(secondary)
2.2% [0.3%, 7.3%] 4
Improvements ✅
(primary)
-0.8% [-2.3%, -0.2%] 32
Improvements ✅
(secondary)
-1.5% [-6.5%, -0.2%] 18
All ❌✅ (primary) -0.4% [-2.3%, 2.3%] 43

Max RSS (memory usage)

Results

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)
4.0% [0.6%, 10.3%] 4
Regressions ❌
(secondary)
4.0% [3.4%, 4.7%] 2
Improvements ✅
(primary)
-2.5% [-3.6%, -1.1%] 5
Improvements ✅
(secondary)
-2.5% [-2.5%, -2.5%] 1
All ❌✅ (primary) 0.4% [-3.6%, 10.3%] 9

Cycles

Results

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.4% [1.0%, 2.0%] 3
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.8% [-2.6%, -1.1%] 11
Improvements ✅
(secondary)
-4.5% [-7.0%, -3.1%] 4
All ❌✅ (primary) -1.1% [-2.6%, 2.0%] 14

Binary size

Results

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.7% [0.0%, 4.7%] 53
Regressions ❌
(secondary)
0.6% [0.0%, 0.8%] 42
Improvements ✅
(primary)
-1.1% [-4.0%, -0.0%] 51
Improvements ✅
(secondary)
-2.6% [-5.8%, -0.1%] 21
All ❌✅ (primary) -0.2% [-4.0%, 4.7%] 104

Bootstrap: 672.287s -> 670.092s (-0.33%)
Artifact size: 318.40 MiB -> 318.55 MiB (0.05%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Apr 9, 2024
@saethlin saethlin closed this Apr 9, 2024
@saethlin saethlin deleted the measure-ub-checks branch April 9, 2024 22:47
@saethlin
Copy link
Member Author

@rust-lang/wg-compiler-performance this is the measurement I promised in #120863 (comment). In the above perf report green is bad, because it indicates that turning off the checks makes compilation measurably faster.

I'm going to use this PR to look for more things like #123835 and periodically re-take the measurement.

@saethlin saethlin restored the measure-ub-checks branch August 25, 2024 21:16
@saethlin
Copy link
Member Author

@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 Aug 25, 2024
@saethlin
Copy link
Member Author

Oh I see. I did the thing where I can't reopen this because I force-pushed without reopening. Ah well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-perf Status: Waiting on a perf run to be completed. 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.

5 participants