r/iOSProgramming • • 22h ago

3rd Party Service We timed DuckDuckGo's iOS build on GitHub's largest macOS runner and on M5 Pro: 523 s vs 147 s

Disclosure: I work at Bitrise, and the M5 Pro and M6 runners below are ours.

We ran the same xcodebuild build-for-testing on DuckDuckGo’s open-source iOS app (https://github.com/duckduckgo/apple-browsers) with Xcode 27.0 on each machine:

RunnerHardwareTime
GitHub’s XLarge macOS runner (their largest)M2, 5 vCPU, 14GB523.3 s
Build Hub M6 X-LargeM6, 12 vCPU, 28GB169.6 s
Build Hub M5 Pro X-LargeM5 Pro, 18 vCPU, 54GB147.1 s

GitHub’s runner took about 3.6 times as long as M5 Pro, which is close to the difference in vCPU count. So most of that gap is probably the extra cores. The M6 number says more about the chips. It has two thirds of the cores and was only about 15% slower than M5 Pro.

If your app is small, GitHub’s runner is still the easy option. There’s nothing to set up, and a few extra minutes may not bother anyone.

It’s one app, and I don’t know how much of this carries over to yours. Our numbers come from 3 runs per runner. Per-run data and results for other open-source apps are at https://benchmarks.bitrise.io

The full setup is in the write-up: https://bitrise.io/blog/post/m5-pro-runners-live-github-actions

5 Upvotes

4 comments sorted by

2

u/DrDeniseWilliams 15h ago

the gap makes sense to me, hosted runners are shared VMs and a local M-series chip has a lot more headroom. curious if the 523s includes cloning and package resolution or just the build step. waiting on CI every push is why local builds still win for iterating.

1

u/ikonet 21h ago

Once I offload my build to someone else's hardware, I don't really pay attention to how fast it builds. I want fast builds in my development environment but care less about committed code firing off tasks elsewhere.

1

u/dawedev 20h ago

Nice that you used a real open-source app instead of a hello-world project. Were these cold builds with empty DerivedData and no SPM cache on every runner, or warm? On CI the package resolve and cache restore steps often take a big chunk of the time, so splitting resolve time from compile time would make the comparison clearer.

1

u/Which-Meat-3388 19h ago

Not that I appreciate what amounts to an ad and obvious result (new machine with 2-4x the memory is faster) but -

Even for small app iOS app, GitHub is annoyingly slow and expensive for what it is.