A Fair Benchmark Protocol for Agent-Era GitHub Actions Workflows Against the Hosted-Runner Median
Compare runners by changing only `runs-on`, and keep cold caches, queue time and cost separate.
Sponsored by Graphide

To speed up slow GitHub Actions CI, first separate queue time, CPU work, I/O and model latency, then compare runner alternatives on the actual workflow. A fair benchmark against the hosted-runner median changes only runs-on, separates cold and warm caches, and reports cost per job as well as duration. For agentic workflows, token cost and agent wall-clock time must remain visible so that a runner speedup is not confused with a faster model response.
Why the hosted-runner median is no longer a stable baseline for benchmarking
The baseline on paper is simple, ubuntu-latest on 2 vCPU. Its measured performance is less straightforward. A median drawn from one workload, cache state and queue condition does not establish what another team will experience. The label identifies the comparison runner, but it does not describe the circumstances that produced the number. Published charts now vary substantially with those circumstances.
The third-party runner market compounds that ambiguity because providers differ in CPU generations, disk types, cache backends and billing rounding rules. A vendor chooses a workload and measures its service against the hosted baseline under particular conditions. Another vendor can use the same baseline label but test a different mix of compilation, cache restoration and testing. The charts therefore answer different questions. Their bars are not interchangeable evidence of how the same job would perform.
Agentic workflows introduce a further break from the classical baseline because their duration includes model inference and less predictable wall-clock variation. A hosted-runner median measured on conventional builds was never calibrated for that job shape. Nor does taking a median automatically remove the distinction between time spent computing and time spent waiting for a model. The baseline's sensitivity to context means that what looks like a hardware comparison can include differences that do not come from hardware.
What agentic workflows change about the structure of a CI job

A useful model divides execution into three terms, which are CPU work, I/O and model round-trip latency. Classical benchmarks largely concentrate on the first two through compiling, bundling, testing, cache restores and Docker pulls. Agentic jobs add the third term without necessarily replacing the others. Faster hardware cannot shorten the model's response time. Consequently, a runner improvement affects only part of an agentic job, and its visible benefit depends on how much of execution that part occupies.
The workflow file does not always make this division obvious. An agentic job can look like ordinary CI, with action references, shell commands and workflow conventions showing what it does. YAML alone can therefore be an incomplete workload label. A sample that mixes these jobs with conventional builds combines two structurally different distributions. Its median may describe neither category well enough to support a runner decision.
The cost model also gains a separate meter. Runner minutes and token charges are in separate billing systems, and the research described here has no real-time view across both. Agent wall-clock time connects the duration of that activity to the job, while token cost records spending that a runner-minute calculation leaves out. Neither replaces the other. A shorter runner duration does not, by itself, establish the total cost of an agentic workflow.
Duration becomes harder to predict for the same reason. A reasoning-model call can take different amounts of time across otherwise identical commits, so taking a median of several runs may hide a major source of that variation. Cache temperature then changes how that variation reads. A restore taking dozens of seconds can dominate a short conventional job but look negligible within a long agentic one. The cache's share of the measured job has changed, with no necessary change in how well the cache performs.
The five knobs every vendor benchmark turns differently
A selected build, an entire production job and an agentic workflow do not exercise the same resources. Removing cache steps also changes the workload being measured. The workflow defines the scope of the claim, so a result cannot be transferred merely because another repository uses the same language or runner label.
A provider's 4-vCPU product compared with GitHub's 2-vCPU default answers a different question from a comparison at matching core counts. CPU generation and RAM-to-core ratios add further distinctions. This can be a useful product comparison, but it is not evidence that the machines have equivalent resources.
A warm provider run against a cold hosted run measures hardware and caching together. That combination may be relevant to production. But an average across cache states hides whether the gain needs a hit and whether that state is typical of the team's workflow.
Benchmarks vary in how many runs support the result and what the summary retains. A median alone can hide irregular execution times, while a combined queue-and-execution measurement obscures where delays occurred. Agent latency adds another source of spread. The sample must therefore support more than a single central value if it is to describe bursty CI.
A per-minute rate omits duration and billing rounding, while runner-only spending omits token charges for agentic work. These are different accounting boundaries. A fair comparison needs a defined billable job.
A benchmark protocol that controls for each of those variables
A team can turn those questions into eight controls. Start with identical YAML and change only runs-on, using ubuntu-latest at 2 vCPU on the GitHub side. Do not introduce caching plugins, prebuilt images or substituted actions on either side. State the machine shape for both runners. Identical steps establish a common workload, but a difference in core count or cache infrastructure still limits how narrowly you can attribute the result to hardware.
Keep cold-cache and warm-cache results in separate series. Populate each provider's cache before collecting warm measurements, and verify hits in the logs rather than inferring warmth from a shorter run. Key caches on runner.os and runner.arch, because x64 and arm64 cannot share a cache. Keep the series separate in the report.
Give the benchmark its own cache keys as a separate control. Use a fresh key per benchmark dispatch, then populate the relevant cache before that dispatch's warm measurements. Do not clear production caches to manufacture the cold baseline. Production must remain outside the experiment. Otherwise, the benchmark disrupts normal work to create a state that may not represent how the team runs CI.
Record queue time separately from execution time. Keep both visible rather than reporting only an undivided wait from submission to completion. Faster execution hardware does not itself shorten a queue, while extra capacity cannot shorten a serial test already occupying a machine. These are different levers.
Multiply the time the job took by the per-minute rate using each provider's rounding rules, and report that charge alongside the time. A higher rate can still lead to a lower bill when the job finishes sooner. The reverse is also possible. The useful comparison is the charge for completing the same work under stated conditions.
Run the workflow as it is, with its real cache steps. This control complements identical YAML by requiring that the common workflow represents production. Keep build and test behavior identical to what happens on every push. Cache restoration belongs in the measured job. Leaving it out can turn a production comparison into a cold-build test that the team rarely runs.
Report distribution statistics as well as medians, and make the direction of the metric explicit. A p10 performance statistic can show weaker performance, but p10 elapsed time shows shorter runs and leaves out the slow-duration tail. Do not confuse the two. For bursty CI, retain a tail statistic that exposes slower outcomes, and state the run count so readers can judge what supports the distribution.
For agentic jobs, put token cost and agent wall-clock time in their own columns next to runner minutes. Get them from the separate billing and timing views so the bill includes more than runner charges. Keep model-latency variation distinguishable from runner execution variation. Attribution is the purpose of this control. Without it, the benchmark can credit or blame the runner for a change in model response time.
What the existing public benchmarks get right and where they stop short
Public benchmarks remain useful for forming a shortlist when they state their conditions and preserve the work being tested. Explicit conditions define where a result applies, while verdict parity establishes that a shorter run did not achieve its gain by changing the test outcome. Both are substantive evidence. A chart with those properties is more informative than an isolated speedup claim, even before it satisfies every control in this protocol.
The supplied benchmark documentation reports that every test name and result, or every build target, matched the baseline run. It also distinguishes anonymized customer repositories from public open-source jobs and identifies the baseline providers. That gives the comparison a defined scope. The anonymized results keep customer details private, but they also show less of the repositories than the public jobs do. Neither category alone establishes how an unmeasured workflow will behave.
These strengths do not close the agentic measurement gap. The public benchmarks described in the brief do not measure agentic job-duration variance, token cost beside runner minutes, or model-latency effects on tail statistics as a distinct category. A reader can use conventional build results to choose runners to try without expecting the same speedup for a model-heavy job. The missing evidence belongs in the team's trial.
How can a team cut a 25-minute GitHub Actions build?
Separate queue time from execution, then identify CPU work, I/O and any model calls within the slowest job. Treat agentic activity as a distinct workload characteristic. This diagnosis determines what the trial can answer. A long model response and a long compile may produce the same overall duration but call for different interpretations of a hardware result.
Next, use public benchmarks to narrow the runner candidates and apply the protocol to that slowest job. Change only runs-on, give the trial its own cache keys, and keep cold and warm results separate. Keep the build, test and cache steps used in production. Record queue time, execution time and machine shape, along with the cost per job worked out under each provider's rounding rules.
Graphide CI is one option for this trial because it runs existing GitHub Actions jobs after a one-line runs-on change, with warm environments on persistent sticky disks and resizable runners. Its cache and sizing behavior belongs in the stated conditions, while restoring the original label provides a direct rollback path for the runner selection. For any provider, the unchanged-workflow trial should precede conclusions about which part of the service produced the gain. A faster result is useful only within that scope.
If the job is agentic, add token cost and agent wall-clock time for every run and examine model-latency variation separately. Report the median with a tail statistic whose meaning is clear, so a good middle value does not hide slower runs. Then check verdict parity. Every test that passed or failed on the original runner should produce the same result on the alternative, and matching build targets should remain part of the comparison where relevant.
The final choice should depend on how long the workload took, how its queue behaved, what its cache conditions were and what each completed job cost. A candidate can improve one dimension without improving all of them, so the report should preserve those differences rather than compressing them into a universal speedup. State the baseline beside the result. That gives the team a defensible answer about its own slow CI, including which delays the runner change leaves untouched.


