jonathanpeppers / maui-profiling

Repository for building MAUI apps over time. So we can install & profile them.
MIT License
55 stars 8 forks source link

Test .NET 9 RC 1 #28

Closed jonathanpeppers closed 1 month ago

jonathanpeppers commented 5 months ago
> apkdiff "D:\Downloads\com.companyname.hellomaui-Signed.apk" "D:\Downloads\com.companyname.hellomaui-Trimmed.apk"
Size difference in bytes ([*1] apk1 only, [*2] apk2 only):
Summary:
  +           0 Other entries 0.00% (of 2,395,637)
  +           0 Dalvik executables 0.00% (of 13,138,160)
  +           0 Shared libraries 0.00% (of 17,476,793)
  +           0 Package size difference 0.00% (of 14,942,809)
D:\src\inclusive-code-reviews-browser [main ≡]> apkdiff "D:\Downloads\com.companyname.hellomaui-Signed.apk" "D:\Downloads\com.companyname.hellomaui-Trimmed.apk"
Size difference in bytes ([*1] apk1 only, [*2] apk2 only):
  +         249 lib/arm64-v8a/libarc.bin.so
  -           8 lib/arm64-v8a/libaot-Microsoft.Extensions.Configuration.dll.so
  -           8 lib/arm64-v8a/libaot-Xamarin.AndroidX.Activity.dll.so
  -          24 lib/arm64-v8a/libaot-System.Net.Primitives.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.CardView.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.CoordinatorLayout.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.DrawerLayout.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.RecyclerView.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.SwipeRefreshLayout.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.ViewPager.dll.so
  -          24 lib/arm64-v8a/libaot-Xamarin.AndroidX.ViewPager2.dll.so
  -          32 lib/arm64-v8a/libaot-System.Security.Cryptography.dll.so
  -          40 lib/arm64-v8a/libaot-System.IO.Compression.Brotli.dll.so
  -          40 lib/arm64-v8a/libaot-Xamarin.AndroidX.Fragment.dll.so
  -          72 lib/arm64-v8a/libaot-System.Text.RegularExpressions.dll.so
  -          80 lib/arm64-v8a/libaot-System.IO.Compression.dll.so
  -          96 lib/arm64-v8a/libaot-System.ObjectModel.dll.so
  -         160 lib/arm64-v8a/libaot-System.Diagnostics.DiagnosticSource.dll.so
  -         168 lib/arm64-v8a/libaot-System.Collections.NonGeneric.dll.so
  -         224 lib/arm64-v8a/libaot-HelloMaui.dll.so
  -         360 lib/arm64-v8a/libaot-Microsoft.Extensions.Primitives.dll.so
  -         456 lib/arm64-v8a/libaot-System.ComponentModel.TypeConverter.dll.so
  -         464 lib/arm64-v8a/libaot-Xamarin.Google.Android.Material.dll.so
  -         592 lib/arm64-v8a/libaot-_Microsoft.Android.Resource.Designer.dll.so
  -         608 lib/arm64-v8a/libaot-Java.Interop.dll.so
  -         648 lib/arm64-v8a/libaot-System.Net.Http.dll.so
  -         784 lib/arm64-v8a/libaot-System.ComponentModel.Primitives.dll.so
  -         888 lib/arm64-v8a/libaot-Xamarin.AndroidX.Core.dll.so
  -       1,081 META-INF/ANDROIDD.SF
  -       1,081 META-INF/MANIFEST.MF
  -       1,208 lib/arm64-v8a/libaot-System.Private.Xml.dll.so
  -       1,256 lib/arm64-v8a/libaot-System.Collections.dll.so
  -       1,496 lib/arm64-v8a/libaot-Microsoft.Extensions.DependencyInjection.Abstractions.dll.so
  -       1,616 lib/arm64-v8a/libaot-Xamarin.AndroidX.AppCompat.dll.so
  -       3,288 lib/arm64-v8a/libaot-System.Collections.Concurrent.dll.so
  -       3,592 lib/arm64-v8a/libaot-System.dll.so *1
  -       3,608 lib/arm64-v8a/libaot-System.Memory.dll.so *1
  -       3,608 lib/arm64-v8a/libaot-System.Threading.dll.so *1
  -       3,624 lib/arm64-v8a/libaot-System.Numerics.Vectors.dll.so *1
  -       3,624 lib/arm64-v8a/libaot-System.Runtime.Loader.dll.so *1
  -       3,624 lib/arm64-v8a/libaot-System.Threading.Thread.dll.so *1
  -       5,344 lib/arm64-v8a/libaot-Microsoft.Extensions.Logging.Abstractions.dll.so
  -       5,796 classes2.dex
    -          26 strings count
    -           8 types count
    -          11 fields count
    -          74 methods count
    -           8 classes count
    -       4,724 data section size
  -       9,496 lib/arm64-v8a/libaot-Mono.Android.dll.so
  -      13,744 lib/arm64-v8a/libaot-Microsoft.Maui.Essentials.dll.so
  -      14,864 lib/arm64-v8a/libxamarin-app.so
  -      17,504 lib/arm64-v8a/libaot-Microsoft.Maui.Graphics.dll.so
  -      19,664 lib/arm64-v8a/libaot-Microsoft.Extensions.Logging.dll.so *1
  -      22,120 lib/arm64-v8a/libaot-System.Linq.dll.so
  -      24,992 lib/arm64-v8a/libaot-Microsoft.Maui.Controls.Xaml.dll.so
  -      29,248 lib/arm64-v8a/libaot-Microsoft.Extensions.Options.dll.so *1
  -      50,336 lib/arm64-v8a/libaot-Microsoft.Maui.dll.so
  -     118,680 lib/arm64-v8a/libaot-System.Private.CoreLib.dll.so
  -     261,448 lib/arm64-v8a/libaot-System.Linq.Expressions.dll.so *1
  -     369,896 lib/arm64-v8a/libaot-Microsoft.Maui.Controls.dll.so
  -     784,737 lib/arm64-v8a/libassemblies.arm64-v8a.blob.so
Summary:
  -       2,162 Other entries -0.09% (of 2,395,637)
  -       5,796 Dalvik executables -0.04% (of 13,138,160)
  -   1,778,288 Shared libraries -10.18% (of 17,476,793)
  -     955,215 Package size difference -6.39% (of 14,942,809)
jonathanpeppers commented 5 months ago

/azp run

azure-pipelines[bot] commented 5 months ago
No pipelines are associated with this pull request.
jonathanpeppers commented 5 months ago

So .NET 9 Preview 5:

dotnet new maui
dotnet build -f net9.0-android -c Release -r android-arm64
vs
dotnet build -f net9.0-android -c Release -r android-arm64 -p:TrimMode=full
Summary:
  -       2,162 Other entries -0.09% (of 2,395,637)
  -       5,796 Dalvik executables -0.04% (of 13,138,160)
  -   1,778,288 Shared libraries -10.18% (of 17,476,793)
  -     955,215 Package size difference -6.39% (of 14,942,809)