← Blog

How to measure app startup time on iOS and Android

By Edward Harker

To measure app startup time, open the previous release and the release candidate on the same phone from the same starting state. Start the timer when you tap the app icon. Note when the first screen appears and when you can use it. Repeat the launch on both builds and compare the median time to each point.

Which launches should you compare?

Start with the launch your users make most often. For a delivery app, that might be a signed-in driver opening the app from the home screen to see the day’s jobs. Use the same test account and the same job list for both builds so there’s something specific to wait for.

Starting stateHow to run it
Installed app, process stoppedStart from a prepared account with the app process stopped, then open it from the home screen. Record exactly how you stopped it.
App in the backgroundSend the open app to the background, wait for a fixed interval and bring it back. Use the same interval for both builds.
First open after install or updatePrepare the same clean install or upgrade again before each run. For an upgrade, start from the same old build and saved data.

Android defines cold, warm and hot starts based on what the system has to create or restore. Apple describes a spectrum of launch conditions and distinguishes a launch from resuming a live process. If you terminated the app and relaunched it on an otherwise warm iPhone, write down those steps. A launch after reboot has different conditions. Android startup states, Apple’s launch and resume guide.

If only the first open after an update is slow, compare that path separately using the mobile app upgrade testing checklist. Keep a notification or deep-link launch in its own test case too, since it can open a different screen.

What should start and stop the timer?

For a manual comparison, start at the tap. Mark the moment the app draws its first screen after the system splash, then mark when the first action you chose is ready. In the delivery app, time until the first job row appears, then tap it to confirm it opens. If the row appears but ignores taps, time that delay too and record how you checked it.

Use a physical phone and builds that match what you ship as closely as possible. Keep the OS, account state, data and connection the same across both sets of runs. Use the same number of repetitions and keep individual readings alongside the median. If the phone heats up or the network changes midway, record it and repeat the comparison under the original conditions.

A recording is enough to show a multi-second spinner. For a small difference, use a benchmark with a defined start and stop point. If a run never reaches the chosen action, record it as a failure with the timeout you used. A median of successful runs can hide repeated failures. How to capture a useful mobile bug recording.

Which tools measure launch time on each platform?

Android. Run Jetpack Macrobenchmark on a physical device with a non-debuggable, profileable build. Use StartupTimingMetric with the startup mode that matches the case. timeToInitialDisplayMs measures through the first frame of the destination screen. timeToFullDisplayMs depends on the app signalling when it’s fully drawn. Check that the signal covers the content you’re waiting for. When comparing builds, keep the benchmark’s compilation mode fixed too. Macrobenchmark setup, Macrobenchmark startup metrics.

iOS. Use XCTApplicationLaunchMetric in an XCTest performance test. The waitUntilResponsive option measures through main-thread responsiveness after the first frame. If the task needs data that loads later, check that milestone separately in a UI test. Xcode Organizer’s Launch Time pane helps you compare field data across versions and devices once it has data. Its first-screen timing can end while a loading indicator is still visible. XCTest launch metric, Xcode launch time guide.

What belongs in a slow-start bug report?

Suppose the first screen appears in about a second on both builds, but the median time to a usable job row rises from 1.7 seconds on build 540 to 4.2 seconds on build 560. Put that wait in the title, for example “Jobs list takes 2.5 seconds longer to become usable on build 560”.

Summary
Device and OS
Baseline build and candidate build
Install history, test account state and network
How the app was stopped or backgrounded
Steps from the launch action to the first usable task
Timing method and the two endpoints
Individual timings and median by build, with any timeouts
Recording timestamps or a link to the benchmark output

Use the bug report template generator to put the setup, steps and timing comparison into an issue. Link to the benchmark output or attach a short recording made with test data so the engineer can see the wait for themselves.

Frequently asked questions

Can I measure app startup time with a screen recording?

Yes, a recording can show an approximate delay and where the user waited. Use the same recording setup for both builds and start from a visible action. Use a platform benchmark for small differences, since frame intervals and recording overhead can affect the result.

Is the first launch after an update the same as a cold start?

The app process can start from scratch in both cases. The first launch after an update may also migrate data or rebuild a cache. Measure that one-time wait in its own test case, then run a fresh-process launch with the update work already done.