Skip to content

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Oct 13, 2025

That code is hot enough for the branch in all accesses to SmallVec to appear in profiles.

@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 Oct 13, 2025
@cjgillot
Copy link
Contributor Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Oct 13, 2025
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Oct 13, 2025
@rust-bors
Copy link

rust-bors bot commented Oct 13, 2025

☀️ Try build successful (CI)
Build commit: f78185f (f78185f71f4f0cd33ef5619fdcf876df1237a01f, parent: ed1d94311e7ed53eabb5667ef577802d88d1aaee)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (f78185f): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@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.4% [0.1%, 0.6%] 18
Regressions ❌
(secondary)
0.4% [0.1%, 0.8%] 23
Improvements ✅
(primary)
-0.4% [-0.6%, -0.1%] 25
Improvements ✅
(secondary)
-0.7% [-3.0%, -0.0%] 73
All ❌✅ (primary) -0.1% [-0.6%, 0.6%] 43

Max RSS (memory usage)

Results (primary -2.0%, secondary 2.5%)

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)
4.2% [0.9%, 6.3%] 16
Improvements ✅
(primary)
-2.0% [-2.0%, -2.0%] 1
Improvements ✅
(secondary)
-2.0% [-2.9%, -1.2%] 6
All ❌✅ (primary) -2.0% [-2.0%, -2.0%] 1

Cycles

Results (secondary -0.5%)

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.6% [1.7%, 5.2%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.0% [-4.2%, -2.1%] 5
All ❌✅ (primary) - - 0

Binary size

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

Bootstrap: 473.894s -> 473.617s (-0.06%)
Artifact size: 388.15 MiB -> 390.42 MiB (0.59%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Oct 13, 2025
@cjgillot cjgillot marked this pull request as ready for review October 13, 2025 22:15
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 13, 2025
@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 Oct 13, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 13, 2025

r? @jackh726

rustbot has assigned @jackh726.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@saethlin
Copy link
Member

Weird. This was a clear improvement when it was added in #109458.

@jackh726
Copy link
Member

Yeah, it's definitely curious that perf is also more green than red in this PR, when the other PR was clearly the other (and, it's not even a clear flip-flop of benchmarks).

I'm sort of wondering if different uses of DenseBitSet have different performance tradeoffs? And over time we use DenseBitSet in different ways?

I'm inclined to land this, given the pretty clear perf results. So r=me. But it might be nice to get a better sense of why the perf results are as they are.

@mati865
Copy link
Member

mati865 commented Oct 14, 2025

Given the artifacts size changes, could this be somehow related to either inlining from LTO or PGO/BOLT?

@cjgillot
Copy link
Contributor Author

Weird. This was a clear improvement when it was added in #109458.

That PR is over 2 years old, so I'm not really surprised that the usage pattern of BitSets have changed in the mean time. I'm not sure it's worth trying to find which usage change causes it.

@bors r=jackh726

@bors
Copy link
Collaborator

bors commented Oct 14, 2025

📌 Commit 0432322 has been approved by jackh726

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 14, 2025
@bors
Copy link
Collaborator

bors commented Oct 16, 2025

⌛ Testing commit 0432322 with merge 779e19d...

@bors
Copy link
Collaborator

bors commented Oct 16, 2025

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing 779e19d to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 16, 2025
@bors bors merged commit 779e19d into rust-lang:master Oct 16, 2025
12 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Oct 16, 2025
Copy link
Contributor

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing f524236 (parent) -> 779e19d (this PR)

Test differences

Show 2 test diffs

2 doctest diffs were found. These are ignored, as they are noisy.

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. dist-x86_64-apple: 9880.1s -> 7604.5s (-23.0%)
  2. i686-msvc-1: 9544.6s -> 10619.7s (11.3%)
  3. dist-ohos-armv7: 4108.2s -> 4536.1s (10.4%)
  4. x86_64-gnu-tools: 3390.3s -> 3737.1s (10.2%)
  5. i686-gnu-1: 8307.5s -> 7460.6s (-10.2%)
  6. dist-apple-various: 4817.9s -> 4345.5s (-9.8%)
  7. dist-arm-linux-gnueabi: 4874.5s -> 5325.9s (9.3%)
  8. test-various: 4791.1s -> 4362.3s (-9.0%)
  9. x86_64-gnu-llvm-20-1: 3440.7s -> 3747.9s (8.9%)
  10. dist-s390x-linux: 4965.7s -> 5404.0s (8.8%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@cjgillot cjgillot deleted the bitsetvec branch October 16, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

7 participants