dotnet / dotnet/perf-autofiling-issues

[Perf] Windows/arm64: 11 Improvements on 4/26/2026 8:51:28 AM +00:00

Open
#71,923 0 comments 0 reactions 0 assignees View on GitHub
arch-arm64 branch-refs/heads/main codegentype-aot compilationmode-tiered kind-android_scenarios linkingtype-dynamic mono-jit os-windows perf-improvement runkind-android_scenarios runtime-mono runtimetype-mono untriaged
Dominant language
No language data
Stars
10
Forks
8
PR merge metrics
PR metrics pending

Description

### Run Information

Name | Value
-- | --
Architecture | arm64
OS | Windows 10.0.22621
Queue | Pixel
Baseline | [2aba648afca9799b64722639f6d280311988bab2](https://github.com/dotnet/runtime/commit/2aba648afca9799b64722639f6d280311988bab2)
Compare | [7e176920717f4805bd7c81dd91809292324da6c6](https://github.com/dotnet/runtime/commit/7e176920717f4805bd7c81dd91809292324da6c6)
Diff | [Diff](https://github.com/dotnet/runtime/compare/2aba648afca9799b64722639f6d280311988bab2...7e176920717f4805bd7c81dd91809292324da6c6)
Configs | CodeGenType:AOT, CompilationMode:tiered, LinkingType:dynamic, RunKind:android_scenarios, RuntimeType:mono

### Improvements in SOD - Android HelloWorld Extracted Size

Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio
-- | -- | -- | -- | -- | -- | -- | -- | --
|

  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libmono-component-marshal-ilgen.so]()
  • [ADX - Test Multi Config Graph]()
| 35.74 KB | 35.55 KB | 0.99 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub]()
  • [ADX - Test Multi Config Graph]()
| 19.57 MB | 19.49 MB | 1.00 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libSystem.Security.Cryptography.Native.Android.so]()
  • [ADX - Test Multi Config Graph]()
| 161.44 KB | 157.98 KB | 0.98 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libSystem.IO.Compression.Native.so]()
  • [ADX - Test Multi Config Graph]()
| 1.22 MB | 1.22 MB | 1.00 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - Aggregate - .so]()
  • [ADX - Test Multi Config Graph]()
| 17.44 MB | 17.36 MB | 1.00 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libSystem.IO.Ports.Native.so]()
  • [ADX - Test Multi Config Graph]()
| 13.00 KB | 12.84 KB | 0.99 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libmonodroid.so]()
  • [ADX - Test Multi Config Graph]()
| 12.86 MB | 12.81 MB | 1.00 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - SOD - Android HelloWorld Extracted Size]()
  • [ADX - Test Multi Config Graph]()
| 19.57 MB | 19.49 MB | 1.00 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libSystem.Native.so]()
  • [ADX - Test Multi Config Graph]()
| 106.35 KB | 98.20 KB | 0.92 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libmonosgen-2.0.so]()
  • [ADX - Test Multi Config Graph]()
| 2.98 MB | 2.97 MB | 1.00 | 0.00 | True | | |
|
  • [SOD - Android HelloWorld Extracted Size - pub\lib\arm64-v8a\libSystem.Globalization.Native.so]()
  • [ADX - Test Multi Config Graph]()
| 70.25 KB | 70.65 KB | 1.01 | 0.00 | True | | |

![graph]()
![graph]()
![graph]()
![graph]()
![graph]()
![graph]()
[Test Report]()

### Repro
General Docs link: https://github.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md

Repro Steps

#### Prerequisites (Build files either built locally or downloaded from payload above)
- Libraries build extracted to `runtime/artifacts` or build instructions: [Libraries README](https://github.com/dotnet/runtime/blob/main/docs/workflow/building/libraries/README.md) args: `-subset libs+libs.tests -rc release -configuration Release -arch $RunArch -framework net8.0`
- CoreCLR product build extracted to `runtime/artifacts/bin/coreclr/$RunOS.$RunArch.Release`, build instructions: [CoreCLR README](https://github.com/dotnet/runtime/blob/main/docs/workflow/building/coreclr/README.md) args: `-subset clr+libs -rc release -configuration Release -arch $RunArch -framework net8.0`
- Mono Runtime build extracted to `runtime/artifacts/bin/mono/$RunOS.$RunArch.Release`, build instructions: [MONO README](https://github.com/dotnet/runtime/blob/main/docs/workflow/building/mono/README.md) args: `-arch $RunArch -os $RunOS -s mono+libs+host+packs -c Release `
- Dotnet SDK installed for dotnet commands
- Running commands from the runtime folder

Linux
```cmd
# Set $RunDir to the runtime directory
RunDir=`pwd`

# Set the OS, arch, and OSId
RunOS='linux'
RunOSId='linux'
RunArch='x64'

# Create mono dotnet
mkdir -p $RunDir/artifacts/dotnet-mono
$RunDir/build.sh -subset libs.pretest -configuration release -ci -arch $RunArch -testscope innerloop /p:RuntimeArtifactsPath=$RunDir/artifacts/bin/mono/$RunOS.$RunArch.Release /p:RuntimeFlavor=mono
cp $RunDir/artifacts/bin/runtime/net8.0-$RunOS-Release-$RunArch/* $RunDir/artifacts/bin/testhost/net8.0-$RunOS-Release-$RunArch/shared/Microsoft.NETCore.App/8.0.0 -rf
cp $RunDir/artifacts/bin/testhost/net8.0-$RunOS-Release-$RunArch/* $RunDir/artifacts/dotnet-mono -r
cp $RunDir/artifacts/bin/coreclr/$RunOS.$RunArch.Release/corerun $RunDir/artifacts/dotnet-mono/shared/Microsoft.NETCore.App/8.0.0/corerun

# Create Core Root
$RunDir/src/tests/build.sh release $RunArch generatelayoutonly /p:LibrariesConfiguration=Release

# Clone performance
git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance.git $RunDir/performance

# One line run:
python3 $RunDir/performance/scripts/benchmarks_ci.py --csproj $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --incremental no --architecture $RunArch -f net8.0 --filter 'SOD - Android HelloWorld Extracted Size*' --bdn-artifacts $RunDir/artifacts/BenchmarkDotNet.Artifacts --bdn-arguments="--anyCategories Libraries Runtime --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir/artifacts/dotnet-mono/shared/Microsoft.NETCore.App/8.0.0/corerun"

# Individual Commands:
# Restore
dotnet restore $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --packages $RunDir/performance/artifacts/packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1

# Build
dotnet build $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore /p:NuGetPackageRoot=$RunDir/performance/artifacts/packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1

# Run
dotnet run --project $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore --no-build -- --filter 'SOD - Android HelloWorld Extracted Size*' --anyCategories Libraries Runtime " --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir/artifacts/dotnet-mono/shared/Microsoft.NETCore.App/8.0.0/corerun --artifacts $RunDir/artifacts/BenchmarkDotNet.Artifacts --packages $RunDir/performance/artifacts/packages
```

Windows
```cmd
# Set $RunDir to the runtime directory
$RunDir="FullPathHere"

# Set the OS, arch, and OSId
RunOS='windows'
RunOSId='win'
RunArch='x64'

# Create mono dotnet
mkdir -p $RunDir/artifacts/dotnet-mono
$RunDir/build.sh -subset libs.pretest -configuration release -ci -arch $RunArch -testscope innerloop /p:RuntimeArtifactsPath=$RunDir\artifacts\bin\mono\$RunOS.$RunArch.Release /p:RuntimeFlavor=mono
xcopy $RunDir\artifacts\bin\runtime\net8.0-$RunOS-Release-$RunArch\ $RunDir\artifacts\bin\testhost\net8.0-$RunOS-Release-$RunArch\shared\Microsoft.NETCore.App\8.0.0\ /e /y
xcopy $RunDir\artifacts\bin\testhost\net8.0-$RunOS-Release-$RunArch\ $RunDir\artifacts\dotnet-mono\ /e /y
xcopy $RunDir\artifacts\bin\coreclr\$RunOS.$RunArch.Release\corerun $RunDir\artifacts\dotnet-mono\shared\Microsoft.NETCore.App\8.0.0\corerun /y

# Create Core Root
$RunDir\src\tests\build.cmd release $RunArch generatelayoutonly /p:LibrariesConfiguration=Release

# Clone performance
git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance.git $RunDir\performance

# One line run:
python3 $RunDir\performance\scripts\benchmarks_ci.py --csproj $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --incremental no --architecture $RunArch -f net8.0 --filter 'SOD - Android HelloWorld Extracted Size*' --bdn-artifacts $RunDir\artifacts\BenchmarkDotNet.Artifacts --bdn-arguments="--anyCategories Libraries Runtime --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir\artifacts\dotnet-mono\shared\Microsoft.NETCore.App\8.0.0\corerun.exe"

# Individual Commands:
# Restore
dotnet restore $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --packages $RunDir\performance\artifacts\packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1

# Build
dotnet build $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore /p:NuGetPackageRoot=$RunDir\performance\artifacts\packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1

# Run
dotnet run --project $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore --no-build -- --filter 'SOD - Android HelloWorld Extracted Size*' --anyCategories Libraries Runtime " --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir\artifacts\dotnet-mono\shared\Microsoft.NETCore.App\8.0.0\corerun.exe --artifacts $RunDir\artifacts\BenchmarkDotNet.Artifacts --packages $RunDir\performance\artifacts\packages
```

### SOD - Android HelloWorld Extracted Size

#### ETL Files

#### Histogram

#### JIT Disasms

### Docs

[Profiling workflow for dotnet/runtime repository](https://github.com/dotnet/performance/blob/master/docs/profiling-workflow-dotnet-runtime.md)
[Benchmarking workflow for dotnet/runtime repository](https://github.com/dotnet/performance/blob/master/docs/benchmarking-workflow-dotnet-runtime.md)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.