r/iOSProgramming • • 1d 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

6 Upvotes

11 comments sorted by

2

u/Which-Meat-3388 1d 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.

1

u/ToddGergey 5h ago

Yes, the disclosure is there for that reason. M6 Large has the same 14GB as GitHub's XLarge, though, and it took 215 seconds against 523sec, so memory isn't the whole difference. On small apps, if you're on macos-latest, that's an M1 with 3 vCPU, which would explain a lot of the slowness

1

u/ikonet 1d 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/ToddGergey 5h ago

Makes sense if nothing is waiting on it. GitHub does charge more per minute for macOS runners than for Linux, so a slow build still costs more even if nobody's watching it

2

u/DrDeniseWilliams 1d 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.

•

u/BunnyPaw88 58m ago

Hey u/DrDeniseWilliams,

Very good question, yes, every measured build starts from an empty build folder. It means there is no connection yet to the Git provider, code needs to be cloned, there is no caching involved, etc. I agree with you, local is faster, as you can skip all of these steps, but it doesn't replace the CI entirely.

1

u/dawedev 1d 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.

•

u/BunnyPaw88 56m ago

Yes, cold builds, nothing on the disk, no cache. Thanks for the feedback on the split, it would be nice to see a more detailed comparison. I will bring this back to the team.

•

u/dawedev 48m ago

Fully cold keeps it fair across runners, good call. If you do a follow-up, a warm run next to it would be useful too, since most teams cache DerivedData or SPM packages on CI and that is often where the runner differences shift.