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

Runner Hardware Time
GitHub’s XLarge macOS runner (their largest) M2, 5 vCPU, 14GB 523.3 s
Build Hub M6 X-Large M6, 12 vCPU, 28GB 169.6 s
Build Hub M5 Pro X-Large M5 Pro, 18 vCPU, 54GB 147.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

20 comments sorted by

2

u/ikonet 11d 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 10d 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/Which-Meat-3388 11d 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 10d 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/huckingfooligan12345 8d ago

How does the pricing compare to something like Blacksmith? I am currently looking to get off of Github and setup my own runner on a separate server, but it's bottlenecking as well.

1

u/ToddGergey 7d ago

M5 Pro is Enterprise-only for now, so the closest self-serve comparison is our M4 Large: 5 vCPU and 14GB at $0.03 a minute. Blacksmith's macOS runner is an M4 with 6 vCPU and 24GB at $0.08, and GitHub charges $0.062 for its standard macOS runner and $0.102 for the XLarge, which needs a Team or Enterprise plan. Plans start at $15 a month, and the fee works as your minute budget: https://bitrise.io/pricing

There's a 14-day trial that also includes the M4 XLarge (10 vCPU, 28GB), and moving a job over is a runs-on change: https://docs.bitrise.io/en/bitrise-build-hub/build-hub-for-github-actions/configuring-build-hub-for-github-actions. You could run the same workflow on your server and on ours for a week and compare real build times before deciding. If your server is a Mac, that also shows whether it's worth the Xcode and macOS upkeep.

What's bottlenecking on your server right now, jobs queuing or single builds being slow?

1

u/huckingfooligan12345 3d ago

Nice, thanks for letting me - honestly, its both queues and single build being slow right now

1

u/ToddGergey 1d ago

Then the trial should cover both. It lets you run up to 30 macOS vCPU at once, so three jobs on M4 XLarge (10 vCPU, 28GB) or six on M4 Large in parallel. I'd point your slowest workflow at XLarge first, then open a few PRs at the same time to see how it handles the queue.

After the trial, how many jobs run at once depends on the plan. Basic tops out at 35 macOS vCPU and only has M4 Large, while Pro goes from 40 to 90 vCPU and includes XLarge. If you tell me roughly how many jobs you run at once, I can tell you which tier would cover it.

1

u/argo_devbuild 8d ago

Depends a lot on what's bottlenecking. If jobs sit queued, that's usually because one runner registration only picks up one job at a time, so registering a few runners on the same server with their own work folders or adding a second machine helps. If single jobs are just slow, watch CPU and disk while a build runs, a lot of builds end up waiting on disk IO or a cold dependency cache rather than cores. For pricing, compare your monthly CI minutes against the fixed cost of the server, hosted per-minute runners tend to win when usage is bursty and lose when a box is busy all day.

1

u/dawedev 11d 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/BunnyPaw88 10d 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.

1

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

1

u/mrdzyn 9d ago

Good numbers to see side-by-side. In practice, for smaller indie/team repos, the bigger variable alongside raw CPU cores is SwiftPM dependency resolution and DerivedData caching — if a runner isn't caching packages and build intermediates cleanly between runs, cold-starting Xcode eats a noticeable chunk of the time you save on compilation.

For solo devs, GitHub's standard runner or Xcode Cloud's 25 free monthly hours usually covers it, but once a codebase hits DuckDuckGo's scale or runs PR checks all day, jumping from 5 vCPUs to 12–18 is a huge quality-of-life difference.

1

u/argo_devbuild 8d ago

On github hosted - caching the swiftpm checkouts and deriveddata keyed on package.resolved plus the Xcode version gets you a lot and if you want more cores the these ones do a good job - github's larger macOS runners, xcode cloud or warpbuild's M5 pro runners at 6 or 12 vCPU.

2

u/[deleted] 11d ago

[removed] — view removed comment

1

u/BunnyPaw88 10d 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/JaysonthePirate 10d ago

Setup is kept out of the timings. Cloning, package and dependency downloads and simulator start-up happen first and aren't timed.

From the methodology section of benchmarks.bitrise.io