-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Nearly 50% performance regression when copying/moving small byte arrays between 1.71 and 1.72 #115212
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.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.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Nearly 50% performance regression between versions 1.71 and 1.72 when copying small byte arrays with
stable-aarch64-apple-darwinplatform (Macbook Pro M1). Usedcargo bisect-rustcto track down the regression to fd9bf59 #111999Code
I tried this code:
I expected to see this happen: to run about 6,200,000 ns/iter like version 1.71
Instead, this happened: 9,159,412 ns/iter
Version it worked on
It most recently worked on: 1.71
More specifically nightly-2023-06-06-aarch64-apple-darwin
Version with regression
1.72
nightly-2023-06-07-aarch64-apple-darwin
rustc --version --verbose:cargo bisect-rustc
Searched nightlies: from nightly-2023-06-06 to nightly-2023-06-07
regressed nightly: nightly-2023-06-07
searched commit range: e6d4725...b2b34bd
regressed commit: fd9bf59
bisected with cargo-bisect-rustc v0.6.7
Host triple: x86_64-apple-darwin
Reproduce with:
@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged