How to measure iOS app start-up times
Published in
1 min readApr 3, 2019
Short app load times are imperative to a good user experience.
The most important baseline measurement is the cold start time — the time it takes for your app to load before iOS calls main()
, before any app data is cached in memory. A good load time is around 400ms.
To do this:
- Go to Xcode’s scheme navigator and select your app target.
- Press Edit Scheme….
- Select the Run action tab.
- Select the Arguments tab.
- Under the Environment variables section, press the
+
button. - In the Name column, add
DYLD_PRINT_STATISTICS
. - In the Value column, add
1
.
Now, when you run your build, the console panel with show the app’s pre-main times.
Make sure you measure this, before you ship.