TimLariviere / Fabulous-new

Fabulous v2 - Work in progress
https://timothelariviere.com/Fabulous-new/
Other
41 stars 3 forks source link

[Performance] Figure out how to benchmark with "Mono Ahead of Time" #38

Open twop opened 2 years ago

twop commented 2 years ago

Currently we benchmark with .NET 6 JIT, while it is awesome to have something going, we probably want a closer to Fabulous actual use case: mobile AoT compilation with Mono.

We use https://benchmarkdotnet.org that can support it, I just haven't had enough energy to figure out how. Note that I have Apple M1 chip which can run arm code natively (thus the closest that we can get)

Here is a snippet how to setup Mono https://benchmarkdotnet.org/articles/configs/toolchains.html#monoaotllvm

Alternatively we can have a test mobile project (not even XF) with a simple functionality of Run and Report/See results that we manually deploy to a device.

Note for the benchmark app above we would still use TestUI framework vs Xamarin binding to have a stable reference and "apples to apples" comparison

TimLariviere commented 2 years ago

Not sure it still applies now we're targeting .NET 6.0 by default. I believe AoT still is a thing, but we need to find how to test