Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uno Platform WASM performance: good / acceptable / terrible

I'm looking into Uno Platform and trying to run Getting-Started-Tutorial-1 on my laptop. It's very simple: demo. But it takes 10 sec to load this simple page on localhost.

On UnoConf it was said that Uno Gallery is written in uno platform. I measured the time when user see a page and when all background data is loaded. Results:

  • Safari - 50 sec of white screen and then page was loaded (I didn't find how to measure background load).
  • Firefox - 30 sec of white screen and 34 sec total (4 sec page was loaded in the background)
  • Crome - 17 sec of white screen and 21 sec total (4 sec page was loaded in the background)

Page reload without clearing the cache takes almost the same time.

For comparison I opened Vuetify Gallery. It takes 3 sec to show page to a user and total load is 30 sec (27 sec page was loaded in the background). So, user see the page and can interact with it in 3 sec.

Questions: Is it real Uno Platform WASM performance? Is it the same in mobile apps (Android and iOS)? Any solutions how to speed it up? Can you recommend other frameworks to develop mobile apps + web with better performance?

like image 448
Andrei Avatar asked Nov 01 '25 22:11

Andrei


1 Answers

The load performance in WebAssembly is highly dependent on the way the app is compiled. There are various runtime execution modes (see https://github.com/unoplatform/Uno.Wasm.Bootstrap/blob/main/doc/runtime-execution-modes.md), which impact the download size and runtime performance of the app. Overall however, WebAssembly apps are (at least for now) larger for download than JavaScript based apps - so on slower connections, they will also take longer to load the first time. Subsequent loads should be fast. Going forward, the performance and download size will keep improving with new innovations on WebAssembly side as well as new improvements in future versions of .NET.

For mobile and desktop targets of Uno Platform, the performance is very close to native and load times will match the performance of any .NET-based mobile application on that platform.

like image 192
Martin Zikmund Avatar answered Nov 04 '25 21:11

Martin Zikmund



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!