Skip to main content

Xcode Build Timing Diff

Compare Xcode task counts and recorded durations, then copy the findings into a pull request.

Baseline A

UTF-8 text · Up to 2 MiB

Processed in your browser

How it works

Get a timing summary

  1. In Xcode, choose Product → Perform Action → Build With Timing Summary and copy the summary from the build report.
  2. In Terminal, use your usual project and scheme with xcodebuild -showBuildTimingSummary build > build-timing.txt 2>&1.
  3. Paste the Build Timing Summary heading and rows, or choose a UTF-8 text file. Each input can contain up to 2 MiB and 2,000 timing rows. Select one summary if the log contains several.

Use English plain text. For .xcresult bundles or .xcactivitylog files, extract the summary text first.

What task time means

Task time adds up the recorded durations. Two one-second tasks running side by side contribute two seconds of task time during one second on the clock. Time both completed builds from the same start and finish points, then choose Add elapsed times.

Comparing a change

Change one thing. Keep the build action, mode, scheme, configuration, destination, toolchain, Mac, and cache state fixed. Run each version three times and compare the middle elapsed time for each.

Sources

Apple’s guide to improving incremental builds · Apple’s Build Timeline walkthrough