Skip to content

Querify part of inline cost estimation #126640

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

Closed
wants to merge 2 commits into from

Conversation

saethlin
Copy link
Member

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 Jun 18, 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 Jun 18, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 18, 2024
Querify part of inline cost estimation

r? `@ghost`
@bors
Copy link
Collaborator

bors commented Jun 18, 2024

⌛ Trying commit cc30799 with merge 4b3f3dd...

}

// Basic cost is allowed to under-estimate but never over-estimate. Something that fails basic cost
// checking must fail full cost checking, so that we can ensure we never accidentally reject
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: I think this is a "should" not a "must".

Like an A* heuristic, I think it'd probably fine to be an underestimate 99% of the time because if there's something unlikely that can hypothetically make it overestimate, that would be fine.

@bors
Copy link
Collaborator

bors commented Jun 18, 2024

☀️ Try build successful - checks-actions
Build commit: 4b3f3dd (4b3f3dd78a66c833d25566b2eb134cdd7e1c177b)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (4b3f3dd): comparison URL.

Overall result: ✅ 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
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.2% [-0.2%, -0.2%] 1

Max RSS (memory usage)

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

Cycles

Results (primary 2.0%, secondary 3.6%)

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)
2.0% [2.0%, 2.0%] 1
Regressions ❌
(secondary)
3.6% [2.0%, 4.3%] 9
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.0% [2.0%, 2.0%] 1

Binary size

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

Bootstrap: 671.639s -> 671.701s (0.01%)
Artifact size: 320.44 MiB -> 320.36 MiB (-0.03%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 19, 2024
@saethlin
Copy link
Member Author

@scottmcm I'm going to close in a few days unless you object, this because we have no evidence that this approach improves anything. If you have further suggestions for a way to make this more effective, I'm willing to try them out. Or you can push to this PR, or you can yoink this code to your own PR.

@scottmcm
Copy link
Member

Totally good with closing this. I can definitely come back and ninja the code from it should it make it to the top of my list, but I'm unlikely to do anything with it in the next couple days.

Thanks for trying this out!

@scottmcm scottmcm closed this Jun 20, 2024
@saethlin saethlin deleted the inline-cost-query branch January 27, 2025 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants