DevPrep

All topics › Performance

What makes up app launch time and how do you measure it?

Senior PRO

Essence

Users perceive launch as the time from tapping the icon to the first meaningful frame. There's a cold launch (no process, data not cached), a warm one (no process, but some data is still in memory) and a resume from the background. Apple's target is roughly 400 ms to the first frame of a cold launch; if launch takes tens of seconds, the system terminates the app (watchdog).

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store