22 Nov, 2026Aishwarya Palta
How to Benchmark GitHub Actions Runners Fairly
Build a fair GitHub Actions runner benchmark by controlling hardware, cache state and repeated runs. Compare build time, failures and actual billed usage.
A useful GitHub Actions runner benchmark compares the same work under documented conditions. Fix the source revision, commands and toolchain; report cache state, hardware and repeated results before declaring one runner faster.
Our developer rule: measure the workflow you need to finish, including its failures. A compiler microbenchmark alone cannot predict dependency downloads, integration tests or queue delays.
What must stay comparable?
Record the commit SHA, lockfiles, operating system, architecture, CPU model, vCPU count, memory and build flags. Keep test scope and parallelism explicit. The runner-size guide helps choose configurations to compare.
On Linux, capture basic hardware details before the timed command:
git rev-parse HEAD
uname -m
lscpu
free -hEqual vCPU counts do not establish identical hardware. Decide whether you are comparing similar capacity, similar cost or each provider’s recommended configuration, and label that choice.
Which cache state are you measuring?
Report cold and warm cases separately. For each, describe dependency downloads, compiler outputs, Docker layers and test-result reuse. A warm package cache can still leave compilation uncached.
Use the cache guide to define what is restored. Include restore and save overhead when measuring the complete job; excluding those steps answers a narrower question.
How should you repeat and report runs?
Choose the workload, cache conditions and repetition plan before collecting results. Alternate runner configurations across the measurement window so one provider is not tested only during a quieter period.
Keep raw results and failed attempts. Report the number of runs, median duration and spread; add more observations when results overlap or fluctuate. The median describes a typical result, while individual slow runs still matter. NIST explains these location measures.
Record queue time separately from job execution and end-to-end feedback time. GitHub job logs expose individual step durations.
Finally, calculate costs using applicable billing rules and include failed work. GitHub’s Usage panel distinguishes execution from billable minutes; use the cost guide for the broader accounting.
Publish enough configuration and raw data for another developer to reproduce the comparison. A single fastest run is not a dependable purchasing decision.