Hello guys, i have a kmm project:
• IOS with: sharedVM + shared UI in compose + voyager
• Android with: sharedVM + shared UI in compose + jetpack navigation
At my surprise the IOS is 35% faster than the android. I was expecting the opposite.
What could be the reason? Maybe IOS are faster than Android?
Maybe it’s the navigation library?
What are a valid metrics i should use in order to compare in a good way both ?
PS: i compared the time it takes to navigate from the first screen to the deepest screen
11/02/2023, 3:59 AM
There are many things involved, starting with what hardware are you basing the comparison.
In general iOS is closer to the metal, and its metal (CPU/memory/solid state) is usually more performant than the average Android metal.
Another is Android ART VM is super optimized and such but still.
Other than that, perhaps jetpack navigation adds more overhead than Voyager.
11/02/2023, 7:19 PM
I saw the same at my last job (building a custom video player). I noticed that even the early prototypes of compose on iOS available then were faster than android.
We also saw performance benefits in our video decoding.