Following on from my recent post asking How much does start-up time matter when choosing a framework? I've now published some figures and the code I used.
With some minor tweaks, I now have an updated graph of the data:
The code and more details can be found at https://github.com/mrlacey/WinAppLaunchCompare
From that repo:
Miscellaneous observations:
- As expected, WinForms was super fast.
- WPF (both .NET and Framework versions) was surprisingly (disappointingly) slow.
- The difference between MAUI and WinUI is surprising given MAUI uses WinUI to create the Windows version of apps. I expected these to be closer.
- Of the cross-platform options (and WinUI) the difference is basically irrelevant. Having clicked the button to launch the apps many, many times, I didn't perceive any real difference, never feeling that one was slow or faster than the others.
My takeaways:
- For choosing a cross-platform framework, there's hardly anything in it in terms of the time it takes to launch the apps.
- I wouldn't base a decision to use a particular framework based on these (or similar) tests/results.
- I also looked at the time until the
App
class was loaded. This varied but didn't seem to be related to the overall time taken. - Performing tests like these can easily become an infinite rabbit hole. There are always potential tweaks and optimizations that could be done. If you have such an interest, please go ahead.
Feel free to experiment with this code as you wish and suggest any ways it could be improved or anything artificially slowing down a version of an app can be addressed.
0 comments:
Post a Comment
I get a lot of comment spam :( - moderation may take a while.