Skip to content

Instantly share code, notes, and snippets.

@jonathanpeppers
Last active January 16, 2020 06:15
Show Gist options
  • Save jonathanpeppers/9f861522604d40c286f24823b75a202c to your computer and use it in GitHub Desktop.
Save jonathanpeppers/9f861522604d40c286f24823b75a202c to your computer and use it in GitHub Desktop.
Xamarin.Forms performance results

Over December, I have been able to work on Xamarin.Forms + Android startup perf. Here is the initial results I'm seeing with the accumulation of all my changes.

All runs were on a Pixel 3 XL

16.4 Blank Forms App template, Xamarin.Forms 4.4.0.991265

Debug:

01-15 23:46:01.157  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +859ms
01-15 23:46:04.919  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +843ms
01-15 23:46:08.708  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +918ms
01-15 23:46:12.386  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +840ms
01-15 23:46:16.121  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +842ms
01-15 23:46:19.888  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +858ms
01-15 23:46:23.670  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +861ms
01-15 23:46:27.403  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +847ms
01-15 23:46:31.153  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +843ms
01-15 23:46:34.919  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +851ms
Average(ms): 856.2
Std Err(ms): 7.28590724923427
Std Dev(ms): 23.0400617283124

Release:

01-15 23:47:37.190  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +617ms
01-15 23:47:40.907  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +605ms
01-15 23:47:44.637  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +600ms
01-15 23:47:48.405  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +616ms
01-15 23:47:52.157  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +610ms
01-15 23:47:55.890  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +606ms
01-15 23:47:59.639  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +615ms
01-15 23:48:03.341  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +608ms
01-15 23:48:07.071  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +614ms
01-15 23:48:10.789  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +610ms
Average(ms): 610.1
Std Err(ms): 1.73493515728975
Std Dev(ms): 5.48634668973808

Xamarin.Forms 4.5.0 branch + xamarin-android/master + outstanding PRs

Debug:

01-15 22:13:45.646  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +843ms
01-15 22:13:49.647  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +820ms
01-15 22:13:53.678  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +822ms
01-15 22:13:57.680  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +824ms
01-15 22:14:01.644  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +821ms
01-15 22:14:05.610  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +829ms
01-15 22:14:09.593  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +835ms
01-15 22:14:13.576  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +824ms
01-15 22:14:17.589  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +823ms
01-15 22:14:21.626  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +832ms
Average(ms): 827.3
Std Err(ms): 2.33832798763941
Std Dev(ms): 7.39444235745859

Release:

01-15 23:32:36.089  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +582ms
01-15 23:32:40.153  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +565ms
01-15 23:32:44.172  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +575ms
01-15 23:32:48.188  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +573ms
01-15 23:32:52.188  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +586ms
01-15 23:32:56.154  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +577ms
01-15 23:33:00.138  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +594ms
01-15 23:33:04.137  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +581ms
01-15 23:33:08.105  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +574ms
01-15 23:33:12.103  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +580ms
Average(ms): 578.7
Std Err(ms): 2.50355303075005
Std Dev(ms): 7.91692982018773

App w/ 100 Label w/ Binding 16.4 Xamarin.Forms 4.4.0.991265

Debug:

01-16 00:13:45.212  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s105ms
01-16 00:13:48.942  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s83ms
01-16 00:13:52.659  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s88ms
01-16 00:13:56.358  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s89ms
01-16 00:14:00.093  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s92ms
01-16 00:14:03.824  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s94ms
01-16 00:14:07.558  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s84ms
01-16 00:14:11.355  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s85ms
01-16 00:14:15.056  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s80ms
01-16 00:14:18.806  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +1s93ms
Average(ms): 1089.3
Std Err(ms): 2.27082951070015
Std Dev(ms): 7.18099343173816

Release:

01-16 00:15:02.308  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +723ms
01-16 00:15:06.059  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +715ms
01-16 00:15:09.773  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +709ms
01-16 00:15:13.541  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +714ms
01-16 00:15:17.307  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +724ms
01-16 00:15:21.058  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +703ms
01-16 00:15:24.790  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +715ms
01-16 00:15:28.538  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +716ms
01-16 00:15:32.271  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +720ms
01-16 00:15:36.071  1473  1503 I ActivityTaskManager: Displayed com.xamarin.forms.helloforms/crc6450e568c951913723.MainActivity: +712ms
Average(ms): 715.1
Std Err(ms): 2.00249843945008
Std Dev(ms): 6.33245607959503

App w/ 100 Label w/ Binding 16.4 Xamarin.Forms 4.5.0 branch + xamarin-android/master + outstanding PRs

TODO

Debug:

Release:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment