-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Use captures(address) instead of captures(none) for indirect args #145877
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
Conversation
@bors try @rust-timer queue
This comment has been minimized.
This comment has been minimized.
Use captures(address) instead of captures(none) for indirect args
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (31eb44a): comparison URL. Overall result: ❌✅ regressions and improvements - no action neededBenchmarking 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. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.4%, secondary -1.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 3.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.1%, secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 468.198s -> 467.11s (-0.23%) |
While provenance cannot be captured through these arguments, the address / object identity can.
7e5675b
to
c3ab409
Compare
@bors r+
☀️ Test successful - checks-actions
Approved by: tmiasko
Pushing d36f964 to master...
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 cdb45c8 (parent) -> d36f964 (this PR)
Test differences
Show 4 test diffs
Stage 1
[ui] tests/ui/codegen/indirect-nocapture.rs
: [missing] -> pass (J1)
Stage 2
[ui] tests/ui/codegen/indirect-nocapture.rs
: [missing] -> pass (J0)
Additionally, 2 doctest diffs were found. These are ignored, as they are noisy.
Job group index
- J0: aarch64-apple, aarch64-gnu, aarch64-gnu-llvm-19-1, aarch64-msvc-1, arm-android, armhf-gnu, dist-i586-gnu-i586-i686-musl, i686-gnu-1, i686-gnu-nopt-1, i686-msvc-1, test-various, x86_64-gnu, x86_64-gnu-debug, x86_64-gnu-llvm-19, x86_64-gnu-llvm-19-2, x86_64-gnu-llvm-20-2, x86_64-gnu-nopt, x86_64-gnu-stable, x86_64-mingw-1, x86_64-msvc-1
- J1: x86_64-gnu-llvm-19-3, x86_64-gnu-llvm-20-3
Test dashboard
Run
cargo run --manifest-path src/ci/citool/Cargo.toml -- \ test-dashboard d36f964125163c2e698de5559efefb8217b8b7f0 --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
- aarch64-apple: 16222.6s -> 6816.4s (-58.0%)
- pr-check-1: 1391.7s -> 1695.3s (21.8%)
- x86_64-gnu-llvm-19: 2455.3s -> 2887.1s (17.6%)
- i686-gnu-2: 5495.8s -> 6353.9s (15.6%)
- arm-android: 5867.9s -> 6742.0s (14.9%)
- dist-x86_64-apple: 7277.2s -> 8098.8s (11.3%)
- dist-aarch64-apple: 6594.5s -> 7330.2s (11.2%)
- x86_64-gnu-distcheck: 5085.9s -> 5602.1s (10.1%)
- x86_64-gnu-llvm-20-1: 3295.6s -> 3615.3s (9.7%)
- x86_64-gnu-llvm-20-2: 5740.5s -> 6293.5s (9.6%)
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.
Finished benchmarking commit (d36f964): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 3.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary 0.1%, secondary 0.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 469.05s -> 469.595s (0.12%) |
In dtolnay/itoa#60, this PR showed up as a pretty large regression in core::fmt performance. Is that worth looking more into, or is it an expected inevitable result of a correctness fix?
In dtolnay/itoa#60, this PR showed up as a pretty large regression in core::fmt performance. Is that worth looking more into, or is it an expected inevitable result of a correctness fix?
It's probably worth looking into. It's possible we can mitigate it either with better optimization or just with manual code adjustment.
The likely optimization effect of this change is that some memcpys no longer get eliminated.
The syn results are noise, and this is a correctness fix anyway.
@rustbot label: +perf-regression-triaged
While provenance cannot be captured through these arguments, the address / object identity can.
Fixes #137668.
r? @ghost