-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Performance regression in the past 9 days #118501
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-untriagedUntriaged performance or correctness regression.Untriaged performance or correctness regression.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm doing the AoC and I figured I might as well upgrade after finishing day one. I re-ran benchmarks but I'm consistently getting back slowdowns.
rustup updateupdated my nightly toolchains as follows:Code
I tried this code:
AoC repo. Run from the
2023directoryI'll happily try and make an MRE over the weekend if anyone prefers that
I expected to see this happen: Same speed, as I'm not using any nightly-only APIs in the code being run in the benchmarks. The
commonutility module only uses#![feature(byte_slice_trim_ascii)]and that's only being called once.Instead, this happened: The same safe code is consistently running slower with no changes in system load.
Old situation on my hardware:
New:
CPU: AMD Ryzen 7 5800H
mem: 15.4 / 16GB usable
OS: Windows 10 Home
Version: 22H2
Build: 19045.3693
Version it worked on
It most recently worked on: rustc 1.76.0-nightly (2f8d81f 2023-11-21)
Possibly later, I usually don't grab daily updates. I'll go through the other 8 to find where the performance characteristics changed.
Version with regression
rustc --version --verbose:I have tried both windows-gnu and windows-msvc toolchains, they both hit around the same speeds, and the same slowdown.