How Much Faster Are Pre-Warmed Build Runners? Measuring Wait Time Against Idle Cost

With 12 builds an hour, keeping one warm runner costs 20 extra runner-minutes and cuts total start wait by 15 minutes. The five timestamps to record, why the result changes when requests arrive in a burst, and how to compare policies on your real arrival pattern.

John Baek
John Baek
Founder, CollabOps
2 min read

A developer pushes a commit and waits 80 seconds. Not a single line has appeared in the build log yet. Are the tests slow? Maybe there were jobs ahead in the queue, or maybe it took time to create a new runner and pull an image for the first time. Pre-warming runners can only remove part of that time.

The benefit of pre-warmed runners comes from the wait before a build starts, not from build speed. You can only judge it by measuring that benefit together with idle runtime cost, on your actual request arrival pattern.

Which timestamps tell you what actually got faster?

When you start the experiment, record request received, runner provisioning started, job assigned, first command executed, and job finished as separate timestamps. That's how you tell, after adding idle runners, whether builds got faster or simply started earlier. GitHub's Actions Runner Controller also configures the number of idle runners and the maximum number of runners as separate settings.

Twelve builds in one hour

Assume one identical job arrives every five minutes. Provisioning a new runner takes 75 seconds, assignment 5 seconds, and build plus cleanup 120 seconds. One policy creates a runner per request and tears it down right after. The other keeps a single dedicated runner, restorable to the same clean state, running for the whole hour. Here's the runtime for that hour, calculated in seconds.

MetricNew runner per requestOne warm runner kept
Request to first command80 s5 s
Build and cleanup120 s120 s
Total start wait across 12 jobs16 min1 min
Runner runtime over the hour40 min60 min

Under these conditions, 20 extra runner-minutes buy a 15-minute reduction in total start wait across 12 jobs. Of the warm runner's 60 minutes, 25 go to assignment and build/cleanup, and the other 35 are idle. The calculation excludes the initial warm-up before the measured hour, shared node costs, and billing rounding. Cost modeling as build combinations multiply is covered separately in The cost model of matrix builds.

What changes when requests arrive all at once?

If the same 12 jobs land at exactly 9:00 a.m., the result changes. The one warm runner takes the first job immediately, but the other eleven wait for extra runners to be created or for earlier jobs to finish. And if nothing arrives over lunch, the cost of keeping the idle runner is still there.

For a real adoption test, replay a week of actual request arrival times. Compare both policies with the same machine size, image, cache conditions, and concurrency cap. The numbers to look at are median and 95th-percentile wait until the first command, and runner runtime per completed build. If the average build is unchanged but waits are long only around 9 a.m., you have grounds to adjust the warm pool for that window instead of adding runners all day.

  • #cicd
  • #cost
  • #developer-experience
  • #infrastructure
  • #capacity-planning