Skip to content

[EXPERIMENT] Check if isolating Matrix::unspecialize dodges regressions - #161632

Closed
Zalathar wants to merge 1 commit into
rust-lang:mainfrom
Zalathar:insert2
Closed

[EXPERIMENT] Check if isolating Matrix::unspecialize dodges regressions#161632
Zalathar wants to merge 1 commit into
rust-lang:mainfrom
Zalathar:insert2

Conversation

@Zalathar

@Zalathar Zalathar commented Aug 24, 2026

Copy link
Copy Markdown
Member

We know from #161496 that DenseBitSet::insert is extremely sensitive to seemingly-irrelevant changes.

This is a perf experiment to see whether isolating Matrix::unspecialize from those changes avoids the regression.

@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 Aug 24, 2026
@Zalathar Zalathar added the S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. label Aug 24, 2026
@Zalathar

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 Aug 24, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Aug 24, 2026
[EXPERIMENT] Check if isolating `Matrix::unspecializes` dodges regressions
@Zalathar Zalathar changed the title [EXPERIMENT] Check if isolating Matrix::unspecializes dodges regressions [EXPERIMENT] Check if isolating Matrix::unspecialize dodges regressions Aug 24, 2026
@rust-bors

rust-bors Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: ee3df1b (ee3df1bf2c2ef71bdbf802b6fefa8f503eabbe35)
Base parent: fb6531d (fb6531d550e0075b9eb9a51464f404805eec87d9)

@rust-timer

This comment has been minimized.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (ee3df1b): 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 rustc-perf
@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
Regressions ❌
(secondary)
0.8% [0.6%, 1.5%] 8
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This perf run didn't have relevant results for this metric.

Cycles

Results (primary 2.4%, secondary 0.9%)

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

mean range count
Regressions ❌
(primary)
2.4% [2.4%, 2.5%] 2
Regressions ❌
(secondary)
2.5% [2.5%, 2.5%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.1% [-2.1%, -2.1%] 1
All ❌✅ (primary) 2.4% [2.4%, 2.5%] 2

Binary size

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

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)
- - 0
Improvements ✅
(primary)
-0.1% [-0.2%, -0.0%] 34
Improvements ✅
(secondary)
-0.1% [-0.2%, -0.0%] 38
All ❌✅ (primary) -0.1% [-0.2%, -0.0%] 34

Bootstrap: 469.882s -> 469.633s (-0.05%)
Artifact size: 400.35 MiB -> 400.20 MiB (-0.04%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 24, 2026
@Zalathar

Copy link
Copy Markdown
Member Author

Unfortunately, it's hard to say whether this result means that unspecialize is not the culprit, or whether it's merely so sensitive that even this change perturbs it.

@Zalathar Zalathar closed this Aug 24, 2026
@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 Aug 24, 2026
@Zalathar
Zalathar deleted the insert2 branch August 24, 2026 04:06
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-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.

3 participants