Skip to content

perf: Hint -Zdisable-fast-paths as false#157441

Closed
ShoyuVanilla wants to merge 1 commit into
rust-lang:mainfrom
ShoyuVanilla:hint-disable-fast-paths
Closed

perf: Hint -Zdisable-fast-paths as false#157441
ShoyuVanilla wants to merge 1 commit into
rust-lang:mainfrom
ShoyuVanilla:hint-disable-fast-paths

Conversation

@ShoyuVanilla

Copy link
Copy Markdown
Member

This might mitigate the perf regressions in #156172 (comment) 🤔

@rustbot rustbot added 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. labels Jun 4, 2026
@ShoyuVanilla

Copy link
Copy Markdown
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 4, 2026
rust-bors Bot pushed a commit that referenced this pull request Jun 4, 2026
perf: Hint `-Zdisable-fast-paths` as `false`
@rust-bors

This comment has been minimized.

@Noratrieb

Copy link
Copy Markdown
Member

Our primary metric is instruction counts, which will not be affected by branch mispredictions, so this won't have an effect on the primary metrics (and in general, changes like this won't affect it).
You'd need to look at the more noisy cycle counts, which are neutral on the other PR, so I'm not sure it's worth worrying about.

@rust-bors

rust-bors Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: d752daa (d752daa192dcd6e5ccbd03e6b23b231562b523bb, parent: 9ae765da471fd0bc3b305953e72c4eb12f304416)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (d752daa): comparison URL.

Overall result: ❌ regressions - please read:

Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf.

Next, please: If you can, justify the regressions found in this try perf run in writing along with @rustbot label: +perf-regression-triaged. If not, fix the regressions and do another perf run. Neutral or positive results will clear the label automatically.

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

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
0.7% [0.7%, 0.7%] 1
Regressions ❌
(secondary)
0.4% [0.4%, 0.4%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.7% [0.7%, 0.7%] 1

Max RSS (memory usage)

Results (primary -0.3%, secondary 1.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
3.9% [3.4%, 4.5%] 2
Regressions ❌
(secondary)
6.6% [6.4%, 6.7%] 2
Improvements ✅
(primary)
-4.6% [-5.0%, -4.2%] 2
Improvements ✅
(secondary)
-2.6% [-3.5%, -1.9%] 3
All ❌✅ (primary) -0.3% [-5.0%, 4.5%] 4

Cycles

Results (primary -3.5%, secondary -3.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.1% [2.1%, 2.1%] 1
Improvements ✅
(primary)
-3.5% [-5.9%, -1.3%] 109
Improvements ✅
(secondary)
-3.4% [-14.9%, -1.0%] 99
All ❌✅ (primary) -3.5% [-5.9%, -1.3%] 109

Binary size

Results (primary 0.0%, secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 4
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.0%] 4

Bootstrap: 515.26s -> 513.764s (-0.29%)
Artifact size: 400.73 MiB -> 400.72 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 Jun 4, 2026
@ShoyuVanilla

Copy link
Copy Markdown
Member Author

Our primary metric is instruction counts, which will not be affected by branch mispredictions, so this won't have an effect on the primary metrics (and in general, changes like this won't affect it). You'd need to look at the more noisy cycle counts, which are neutral on the other PR, so I'm not sure it's worth worrying about.

Oh, thanks for the explanation 😄 That makes sense!

@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 5, 2026
@ShoyuVanilla ShoyuVanilla deleted the hint-disable-fast-paths branch June 5, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

perf-regression Performance regression. 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.

4 participants