Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add inline(usually)#130679

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
saethlin wants to merge1 commit intorust-lang:master
base:master
Choose a base branch
Loading
fromsaethlin:inline-usually
Draft

Conversation

@saethlin
Copy link
Member

@saethlinsaethlin commentedSep 21, 2024
edited
Loading

I'm looking into what kind of things could recover the perf improvement detected in#121417 (comment). I think it's worth spending quite a bit of effort to figure out how to capture a 45% incr-patched improvement.

As far as I can tell, the root cause of the problem is that we have taken very deliberate steps in the compiler to ensure that#[inline(always)] causes inlining where possible, even when all optimizations are disabled. Some of the reasons that was done are now outdated or were misguided. I think the only remaining use case is where the inlined body even without optimizations is cheaper to codegen or call, for example SIMD intrinsics may require a lot of code to put their arguments on the stack, which is slow to compile and run.

I'm quite sure that the majority of users applied this attribute believing it does not cause inlining in unoptimized builds, or didn't appreciate the build time regressions that implies and would prefer it didn't if they knew. (if that's you, put a heart on this or say something elsewhere, don't reply on this PR)

I am going totry to use the existing benchmark suite to evaluate a number of different approaches and take notes here, and hopefully I can collect enough data to shape any conversation about what we can do to help users.

The core of this PR isInlineAttr::Usually (name doesn't matter) which ensures that when optimizations are enabled that the function is inlined (usual exceptions like recursion apply). I think most users believe this is what#[inline(always)] does.

#130685 (comment) Replaced#[inline(always)] with#[inline(usually)] in the standard library, and did not recover the same 45% incr-patched improvement in regex. It's a tidy net positive though, and I suspect that perf improvement would normally be big enough to motivate merging a change. I think that means the standard library's use of#[inline(always)] is imposing marginal compile time overhead on the ecosystem, but the bigger opportunities are probably in third-party crates.

#130679 (comment) Treats#[inline(always)] as#[inline(usually)] literally everywhere; this gets the desired incr-patched improvement but suffers quite a few check and doc regressions. I think that means thatalwaysinline is more powerful thanfunction-inline-cost=0 in LLVM.

#130679 (comment) Treats#[inline(always)] as#[inline(usually)] when-Copt-level=0, which looks basically the same as#121417 (comment) (omitalwaysinline when doing-Copt-level=0 codegen).

#130679 (comment) replacesalwaysinline with a very negative inline cost, and it still has check and doc regressions. More investigation required on what the different inlining decision is.

#130679 (comment) is a likely explanation of this, with some interesting implications; addinginline(always) to a function that was going to be inlined anyway can change change optimizations (usually it seems to improve things?).

#130679 (comment) makes#[inline(usually)] also defy instantiation mode selection and always be LocalCopy the way#[inline(always)] does, but still has regressions in stm32f4. I think that proves thatalwaysinline can actually improve debug build times.

#130679 (comment) infersalwaysinline for extremely trivial functions, but still has regressions for stm32f4. But of course it does, I leftinline(always) treated asinline(usually) which slows down the compiler 🤦 inconclusive perf run.

#130679 (comment) doesn't have any stm32f4 regressions 🥳 I think this means that there is some threshold wherealwaysinline produces faster debug builds.

So still two questions:

  1. Why doesalwaysinline sometimes make debug builds faster?
  2. Is there any obvious threshold at which addingalwaysinline causes more work for debug builds?

scottmcm and hanna-kruppe reacted with heart emoji
@saethlinsaethlin added the S-experimentalStatus: Ongoing experiment that does not require reviewing and won't be merged in its current state. labelSep 21, 2024
@rustbotrustbot added S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-compilerRelevant to the compiler team, which will review and decide on the PR/issue. T-libsRelevant to the library team, which will review and decide on the PR/issue. labelsSep 21, 2024
@saethlinsaethlin removed the S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. labelSep 21, 2024
@saethlin
Copy link
MemberAuthor

@bors try@rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 21, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull requestSep 21, 2024
Add inline(usually)r? `@ghost`I'm looking into what kind of things could recover the perf improvement detected inrust-lang#121417 (comment)
@bors
Copy link
Collaborator

⌛ Trying commite85e8d8 with merge16ff86b...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

☀️ Try build successful -checks-actions
Build commit:16ff86b (16ff86beadb3172d63fad4369aa349ac2c4aa9b6)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (16ff86b):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.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-1.0%[-1.5%, -0.8%]4
Improvements ✅
(secondary)
-0.4%[-1.0%, -0.3%]7
All ❌✅ (primary)-1.0%[-1.5%, -0.8%]4

Max RSS (memory usage)

Results (primary -0.2%, secondary -1.8%)

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.

meanrangecount
Regressions ❌
(primary)
1.8%[0.5%, 3.0%]2
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-2.2%[-2.8%, -1.5%]2
Improvements ✅
(secondary)
-1.8%[-1.8%, -1.8%]1
All ❌✅ (primary)-0.2%[-2.8%, 3.0%]4

Cycles

Results (secondary -2.9%)

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.

meanrangecount
Regressions ❌
(primary)
--0
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
--0
Improvements ✅
(secondary)
-2.9%[-2.9%, -2.9%]1
All ❌✅ (primary)--0

Binary size

Results (primary 0.1%, secondary 0.1%)

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.

meanrangecount
Regressions ❌
(primary)
0.1%[0.0%, 0.2%]45
Regressions ❌
(secondary)
0.1%[0.0%, 0.2%]12
Improvements ✅
(primary)
-0.2%[-0.4%, -0.2%]8
Improvements ✅
(secondary)
--0
All ❌✅ (primary)0.1%[-0.4%, 0.2%]53

Bootstrap: 769.527s -> 768.003s (-0.20%)
Artifact size: 341.45 MiB -> 341.42 MiB (-0.01%)

@rustbotrustbot removed the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull requestSep 22, 2024
…what-she-sed, r=<try>try `inline(usually)` moreseerust-lang#130679figured I'd see what happens if you sed it in to the library.
@saethlin
Copy link
MemberAuthor

@bors try@rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull requestSep 22, 2024
Add inline(usually)r? `@ghost`I'm looking into what kind of things could recover the perf improvement detected inrust-lang#121417 (comment)
@bors
Copy link
Collaborator

⌛ Trying commite4ff49d with merge31d3b5c...

@RalfJung
Copy link
Member

Is there a place for general discussion of this proposal?

My concern would be -- the data you have shows that debug builds build a lot faster this way, but the resulting binaries may also be a lot slower. If this makes debug binaries 10x slower then I don't think we should do this. I doubt it'll be 10x, but we should know how much it is before changing all those small functions to not be inlined any more.

@rust-log-analyzer

This comment has been minimized.

@saethlin
Copy link
MemberAuthor

saethlin commentedSep 22, 2024
edited
Loading

Is there a place for general discussion of this proposal?

Once again, this is S-experimental because I am trying to gather data, not make a proposal. I don't have a proposal to make, because I have not gathered enough data. You're trying to raise a data-free speculative objection to a proposal that doesn't exist because I'm trying to gather data.

@RalfJung
Copy link
Member

RalfJung commentedSep 22, 2024 via email

I was suggesting what kind of data would be good to collect (and which AFAIK our perf infra does not provide). I feel like it'd still make sense to have some place to register questions like that to ensure they get discussed if/when this moves forward. After all there is no way to be sure that I would even notice when that happens. But okay, whatever.

@bors
Copy link
Collaborator

☀️ Try build successful -checks-actions
Build commit:31d3b5c (31d3b5c04e0372e59ed15dd7f9b874594d9cea46)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (31d3b5c):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.

meanrangecount
Regressions ❌
(primary)
0.9%[0.2%, 2.7%]223
Regressions ❌
(secondary)
1.8%[0.2%, 6.7%]201
Improvements ✅
(primary)
-11.8%[-45.8%, -0.5%]34
Improvements ✅
(secondary)
-1.8%[-8.1%, -0.2%]16
All ❌✅ (primary)-0.7%[-45.8%, 2.7%]257

Max RSS (memory usage)

Results (primary -8.1%, secondary -0.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.

meanrangecount
Regressions ❌
(primary)
1.5%[0.4%, 2.8%]4
Regressions ❌
(secondary)
2.4%[0.9%, 4.8%]3
Improvements ✅
(primary)
-9.6%[-23.9%, -1.0%]26
Improvements ✅
(secondary)
-2.4%[-3.4%, -1.0%]4
All ❌✅ (primary)-8.1%[-23.9%, 2.8%]30

Cycles

Results (primary -5.1%, secondary 3.1%)

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.

meanrangecount
Regressions ❌
(primary)
1.3%[0.4%, 2.6%]33
Regressions ❌
(secondary)
3.5%[1.4%, 7.9%]27
Improvements ✅
(primary)
-11.7%[-43.1%, -1.3%]32
Improvements ✅
(secondary)
-7.4%[-7.4%, -7.4%]1
All ❌✅ (primary)-5.1%[-43.1%, 2.6%]65

Binary size

Results (primary -2.6%, secondary 1.0%)

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.

meanrangecount
Regressions ❌
(primary)
0.7%[0.1%, 3.8%]34
Regressions ❌
(secondary)
1.1%[0.0%, 4.4%]49
Improvements ✅
(primary)
-4.2%[-14.5%, -0.1%]68
Improvements ✅
(secondary)
-1.3%[-3.9%, -0.3%]4
All ❌✅ (primary)-2.6%[-14.5%, 3.8%]102

Bootstrap: 768.93s -> 758.71s (-1.33%)
Artifact size: 341.51 MiB -> 336.00 MiB (-1.62%)

@saethlin
Copy link
MemberAuthor

@bors try@rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 29, 2024
@bors
Copy link
Collaborator

⌛ Trying commit8c95207 with merge3a65c2b...

bors added a commit to rust-lang-ci/rust that referenced this pull requestSep 29, 2024
Add inline(usually)I'm looking into what kind of things could recover the perf improvement detected inrust-lang#121417 (comment). I think it's worth spending quite a bit of effort to figure out how to capture a 45% incr-patched improvement.As far as I can tell, the root cause of the problem is that we have taken very deliberate steps in the compiler to ensure that `#[inline(always)]`  causes inlining where possible, even when all optimizations are disabled. Some of the reasons that was done are now outdated or were misguided. I think the only remaining use case is where the inlined body even without optimizations is cheaper to codegen or call, for example SIMD intrinsics may require a lot of code to put their arguments on the stack, which is slow to compile and run.I'm quite sure that the majority of users applied this attribute believing it does not cause inlining in unoptimized builds, or didn't appreciate the build time regressions that implies and would prefer it didn't if they knew. (if that's you, put a heart on this or say something elsewhere, don't reply on this PR)I am going to _try_ to use the existing benchmark suite to evaluate a number of different approaches and take notes here, and hopefully I can collect enough data to shape any conversation about what we can do to help users.The core of this PR is `InlineAttr::Usually` (name doesn't matter) which ensures that when optimizations are enabled that the function is inlined (usual exceptions like recursion apply). I think most users believe this is what `#[inline(always)]` does.rust-lang#130685 (comment) Replaced `#[inline(always)]` with `#[inline(usually)]` in the standard library, and did not recover the same 45% incr-patched improvement in regex. It's a tidy net positive though, and I suspect that perf improvement would normally be big enough to motivate merging a change. I think that means the standard library's use of `#[inline(always)]` is imposing marginal compile time overhead on the ecosystem, but the bigger opportunities are probably in third-party crates.rust-lang#130679 (comment) Treats `#[inline(always)]` as `#[inline(usually)]` literally everywhere; this gets the desired incr-patched improvement but suffers quite a few check and doc regressions. I think that means that `alwaysinline` is more powerful than `function-inline-cost=0` in LLVM.rust-lang#130679 (comment) Treats `#[inline(always)]` as `#[inline(usually)]` when `-Copt-level=0`, which looks basically the same asrust-lang#121417 (comment) (omit `alwaysinline` when doing `-Copt-level=0` codegen).rust-lang#130679 (comment) replaces `alwaysinline` with a very negative inline cost, and it still has check and doc regressions. More investigation required on what the different inlining decision is.rust-lang#130679 (comment) is a likely explanation of this, with some interesting implications; adding `inline(always)` to a function that was going to be inlined anyway can change change optimizations (usually it seems to improve things?).rust-lang#130679 (comment) makes `#[inline(usually)]` also defy instantiation mode selection and always be LocalCopy the way `#[inline(always)]` does, but still has regressions in stm32f4. I think that proves that `alwaysinline` can actually improve debug build times.rust-lang#130679 (comment) infers `alwaysinline` for extremely trivial functions, but still has regressions for stm32f4. But of course it does, I left `inline(always)` treated as `inline(usually)` which slows down the compiler 🤦 inconclusive perf run.TODO: What happens if we infer `alwaysinline` for extremely small functions like most of those in stm32f4?
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

☀️ Try build successful -checks-actions
Build commit:3a65c2b (3a65c2bcf5382f9a846e4b942883f862b98f3fb8)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (3a65c2b):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.

meanrangecount
Regressions ❌
(primary)
10.2%[0.2%, 43.0%]25
Regressions ❌
(secondary)
1.6%[0.3%, 5.4%]7
Improvements ✅
(primary)
-9.5%[-45.8%, -0.3%]13
Improvements ✅
(secondary)
-1.1%[-1.6%, -0.2%]6
All ❌✅ (primary)3.5%[-45.8%, 43.0%]38

Max RSS (memory usage)

Results (primary -0.0%, secondary -1.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.

meanrangecount
Regressions ❌
(primary)
3.3%[0.7%, 9.9%]22
Regressions ❌
(secondary)
2.1%[2.1%, 2.1%]1
Improvements ✅
(primary)
-8.3%[-21.2%, -0.5%]9
Improvements ✅
(secondary)
-3.4%[-4.7%, -2.1%]2
All ❌✅ (primary)-0.0%[-21.2%, 9.9%]31

Cycles

Results (primary 6.3%, secondary 2.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.

meanrangecount
Regressions ❌
(primary)
13.3%[0.8%, 45.1%]20
Regressions ❌
(secondary)
3.0%[1.8%, 5.8%]11
Improvements ✅
(primary)
-17.1%[-42.2%, -1.1%]6
Improvements ✅
(secondary)
-3.4%[-3.4%, -3.4%]1
All ❌✅ (primary)6.3%[-42.2%, 45.1%]26

Binary size

Results (primary -1.6%, secondary -0.1%)

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.

meanrangecount
Regressions ❌
(primary)
0.5%[0.0%, 3.8%]35
Regressions ❌
(secondary)
0.1%[0.0%, 0.2%]39
Improvements ✅
(primary)
-3.2%[-14.2%, -0.0%]46
Improvements ✅
(secondary)
-1.2%[-3.9%, -0.2%]5
All ❌✅ (primary)-1.6%[-14.2%, 3.8%]81

Bootstrap: 767.6s -> 767.716s (0.02%)
Artifact size: 341.36 MiB -> 341.41 MiB (0.01%)

@rustbotrustbot removed the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 29, 2024
@saethlin
Copy link
MemberAuthor

@bors try@rust-timer queue

@rust-timer

This comment has been minimized.

@rustbotrustbot added the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 29, 2024
@bors
Copy link
Collaborator

⌛ Trying commit8ca3275 with merge70c95b2...

bors added a commit to rust-lang-ci/rust that referenced this pull requestSep 29, 2024
Add inline(usually)I'm looking into what kind of things could recover the perf improvement detected inrust-lang#121417 (comment). I think it's worth spending quite a bit of effort to figure out how to capture a 45% incr-patched improvement.As far as I can tell, the root cause of the problem is that we have taken very deliberate steps in the compiler to ensure that `#[inline(always)]`  causes inlining where possible, even when all optimizations are disabled. Some of the reasons that was done are now outdated or were misguided. I think the only remaining use case is where the inlined body even without optimizations is cheaper to codegen or call, for example SIMD intrinsics may require a lot of code to put their arguments on the stack, which is slow to compile and run.I'm quite sure that the majority of users applied this attribute believing it does not cause inlining in unoptimized builds, or didn't appreciate the build time regressions that implies and would prefer it didn't if they knew. (if that's you, put a heart on this or say something elsewhere, don't reply on this PR)I am going to _try_ to use the existing benchmark suite to evaluate a number of different approaches and take notes here, and hopefully I can collect enough data to shape any conversation about what we can do to help users.The core of this PR is `InlineAttr::Usually` (name doesn't matter) which ensures that when optimizations are enabled that the function is inlined (usual exceptions like recursion apply). I think most users believe this is what `#[inline(always)]` does.rust-lang#130685 (comment) Replaced `#[inline(always)]` with `#[inline(usually)]` in the standard library, and did not recover the same 45% incr-patched improvement in regex. It's a tidy net positive though, and I suspect that perf improvement would normally be big enough to motivate merging a change. I think that means the standard library's use of `#[inline(always)]` is imposing marginal compile time overhead on the ecosystem, but the bigger opportunities are probably in third-party crates.rust-lang#130679 (comment) Treats `#[inline(always)]` as `#[inline(usually)]` literally everywhere; this gets the desired incr-patched improvement but suffers quite a few check and doc regressions. I think that means that `alwaysinline` is more powerful than `function-inline-cost=0` in LLVM.rust-lang#130679 (comment) Treats `#[inline(always)]` as `#[inline(usually)]` when `-Copt-level=0`, which looks basically the same asrust-lang#121417 (comment) (omit `alwaysinline` when doing `-Copt-level=0` codegen).rust-lang#130679 (comment) replaces `alwaysinline` with a very negative inline cost, and it still has check and doc regressions. More investigation required on what the different inlining decision is.rust-lang#130679 (comment) is a likely explanation of this, with some interesting implications; adding `inline(always)` to a function that was going to be inlined anyway can change change optimizations (usually it seems to improve things?).rust-lang#130679 (comment) makes `#[inline(usually)]` also defy instantiation mode selection and always be LocalCopy the way `#[inline(always)]` does, but still has regressions in stm32f4. I think that proves that `alwaysinline` can actually improve debug build times.rust-lang#130679 (comment) infers `alwaysinline` for extremely trivial functions, but still has regressions for stm32f4. But of course it does, I left `inline(always)` treated as `inline(usually)` which slows down the compiler 🤦 inconclusive perf run.rust-lang#130679 (comment) doesn't have any stm32f4 regressions 🥳 I think this means that there is some threshold where `alwaysinline` produces faster debug builds.So still two questions:1. Why does `alwaysinline` sometimes make debug builds faster?2. Is there any obvious threshold at which adding `alwaysinline` causes more work for debug builds?
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

☀️ Try build successful -checks-actions
Build commit:70c95b2 (70c95b222a084ea9a4c7ae723a5a2f27b732093c)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (70c95b2):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.

meanrangecount
Regressions ❌
(primary)
11.0%[0.2%, 30.9%]22
Regressions ❌
(secondary)
1.3%[0.3%, 5.4%]5
Improvements ✅
(primary)
-8.2%[-42.2%, -0.7%]17
Improvements ✅
(secondary)
-2.3%[-3.5%, -1.0%]2
All ❌✅ (primary)2.7%[-42.2%, 30.9%]39

Max RSS (memory usage)

Results (primary -1.7%, secondary -2.0%)

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.

meanrangecount
Regressions ❌
(primary)
3.7%[2.7%, 5.7%]13
Regressions ❌
(secondary)
--0
Improvements ✅
(primary)
-10.5%[-22.1%, -0.5%]8
Improvements ✅
(secondary)
-2.0%[-2.0%, -2.0%]1
All ❌✅ (primary)-1.7%[-22.1%, 5.7%]21

Cycles

Results (primary 3.9%, secondary -2.9%)

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.

meanrangecount
Regressions ❌
(primary)
14.0%[2.0%, 30.5%]18
Regressions ❌
(secondary)
5.0%[5.0%, 5.0%]1
Improvements ✅
(primary)
-9.0%[-39.5%, -1.4%]14
Improvements ✅
(secondary)
-4.0%[-4.8%, -3.1%]7
All ❌✅ (primary)3.9%[-39.5%, 30.5%]32

Binary size

Results (primary -1.7%, secondary 0.5%)

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.

meanrangecount
Regressions ❌
(primary)
0.3%[0.0%, 0.8%]23
Regressions ❌
(secondary)
0.5%[0.1%, 1.4%]15
Improvements ✅
(primary)
-3.0%[-10.0%, -0.1%]38
Improvements ✅
(secondary)
--0
All ❌✅ (primary)-1.7%[-10.0%, 0.8%]61

Bootstrap: 768.779s -> 769.017s (0.03%)
Artifact size: 341.41 MiB -> 341.37 MiB (-0.01%)

@rustbotrustbot removed the S-waiting-on-perfStatus: Waiting on a perf run to be completed. labelSep 29, 2024
@lqdlqd mentioned this pull requestOct 14, 2024
@rustbotrustbot added the A-attributesArea: Attributes (`#[…]`, `#![…]`) labelFeb 9, 2025
@bors
Copy link
Collaborator

☔ The latest upstream changes (presumably#137497) made this pull request unmergeable. Pleaseresolve the merge conflicts.

@borsbors added the S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author. labelFeb 24, 2025
@bors
Copy link
Collaborator

☔ The latest upstream changes (presumably#141002) made this pull request unmergeable. Pleaseresolve the merge conflicts.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)perf-regressionPerformance regression.S-experimentalStatus: Ongoing experiment that does not require reviewing and won't be merged in its current state.S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@saethlin@rust-timer@bors@rust-log-analyzer@RalfJung@nikic@rustbot

[8]ページ先頭

©2009-2025 Movatter.jp