Skip to content

[Android] Add Mono AOT, CoreCLR R2R, CoreCLR R2R Composite, NativeAOT Android SDK configurations #4843

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

matouskozak
Copy link
Member

@matouskozak matouskozak commented Apr 23, 2025

Adding additional configurations to our Android SDK pool:

  • Mono AOT (non-profiled)
  • CoreCLR R2R and R2R Composite
  • NativeAOT (only works with dotnet new android, MAUI is broken at the moment)

Limit Size measurements to only run on Galaxy queue since the results should be independent of the device type.

Internal run: https://dev.azure.com/dnceng/internal/_build/results?buildId=2693951&view=results

Results

MAUI Android Sample Content

SOD - MAUI Android Sample Content Template APK Size:

Date Scenario Size - apk (B)
2025-04-23 15:53:47.0000 mono_ProfiledAOT-GalaxyS21 22,906,687
2025-04-23 15:54:14.0000 coreclr_JIT-GalaxyS21 23,453,327
2025-04-23 15:56:04.0000 mono_AOT-GalaxyS21 28,436,287
2025-04-23 15:52:26.0000 coreclr_R2R-GalaxyS21 31,886,991
2025-04-23 15:55:26.0000 coreclr_R2RComposite-GalaxyS21 33,103,503

Device Startup - MAUI Android Sample Content Template NoAnimation:

Date Scenario Startup (ms)
2025-04-23 15:55:26.0000 coreclr_R2RComposite-GalaxyS21 682
2025-04-23 15:52:26.0000 coreclr_R2R-GalaxyS21 782.4
2025-04-23 15:53:47.0000 mono_ProfiledAOT-GalaxyS21 790.1
2025-04-23 15:56:04.0000 mono_AOT-GalaxyS21 870.2
2025-04-23 15:56:20.0000 coreclr_R2RComposite-Pixel4a 1,403.8
2025-04-23 15:53:37.0000 mono_ProfiledAOT-Pixel4a 1,607.9
2025-04-23 15:52:19.0000 coreclr_R2R-Pixel4a 1,616.3
2025-04-23 15:54:14.0000 coreclr_JIT-GalaxyS21 1,652
2025-04-23 15:53:43.0000 mono_AOT-Pixel4a 1,771.9
2025-04-23 15:54:59.0000 coreclr_JIT-Pixel4a 3,632.4

.NET Android Default

SOD - .NET Android Default Template APK Size:

Date Scenario Size - apk (B)
2025-04-23 15:46:04.0000 mono_ProfiledAOT-GalaxyS21 3,628,014
2025-04-23 15:46:48.0000 mono_AOT-GalaxyS21 4,242,414
2025-04-23 15:45:42.0000 coreclr_NativeAOT-GalaxyS21 6,982,486
2025-04-23 15:46:08.0000 coreclr_JIT-GalaxyS21 7,469,186
2025-04-23 15:45:20.0000 coreclr_R2R-GalaxyS21 9,062,530
2025-04-23 15:46:10.0000 coreclr_R2RComposite-GalaxyS21 9,132,162

Device Startup - .NET Android Default Template NoAnimation:

Date Scenario Startup (ms)
2025-04-23 15:45:42.0000 coreclr_NativeAOT-GalaxyS21 146.4
2025-04-23 15:47:57.0000 coreclr_NativeAOT-Pixel4a 162.5
2025-04-23 15:46:04.0000 mono_ProfiledAOT-GalaxyS21 172.4
2025-04-23 15:46:48.0000 mono_AOT-GalaxyS21 174.2
2025-04-23 15:46:10.0000 coreclr_R2RComposite-GalaxyS21 185.5
2025-04-23 15:45:20.0000 coreclr_R2R-GalaxyS21 187.5
2025-04-23 15:46:58.0000 mono_ProfiledAOT-Pixel4a 215.6
2025-04-23 15:46:34.0000 mono_AOT-Pixel4a 223.4
2025-04-23 15:46:08.0000 coreclr_JIT-GalaxyS21 242.5
2025-04-23 15:48:30.0000 coreclr_R2RComposite-Pixel4a 250.3
2025-04-23 15:45:21.0000 coreclr_R2R-Pixel4a 263.8
2025-04-23 15:46:44.0000 coreclr_JIT-Pixel4a 380.1

Refactoring a few comments

Copy link
Member

@ivanpovazan ivanpovazan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants