Skip to main content
CodSpeed Macro Runners are dedicated bare-metal machines managed by CodSpeed that provide a stable, isolated environment for running your benchmarks. Unlike traditional CI runners, macro runners eliminate noise from virtualization and shared resources, enabling precise walltime measurements with low variance.

What are Macro Runners?

Macro runners are bare-metal machines specifically optimized for consistency in performance measurements. They complement CodSpeed’s CPU simulation by providing an environment where walltime measurements are reliable and reproducible.

When to Use Macro Runners

Macro runners are ideal when you need to measure:
  • System calls and I/O operations that are excluded from the CPU Simulation instrument
  • End-to-end performance including network, disk, and system interactions
  • Walltime benchmarks where actual execution time matters
  • Integration tests that require a complete system environment
CPU Simulation vs Walltime with Macro RunnersUse the CPU Simulation instrument for pure algorithmic performance and the Walltime instrument with Macro Runners for system-level performance that includes I/O operations.
Two families of machines are available, selected by the label of the benchmark job. A run is comparable to the baseline it is reported against only if both were measured on the same machine, so keep a benchmark job on one label over time: switching shifts the measurements of every benchmark of the job.

Runners

Each runner is a dedicated machine with isolated CPU cores and a fixed clock. Its noise level is the typical relative standard deviation of a benchmark’s walltime across repeated CodSpeed runs on that runner.

AMD Ryzen 9950X (x86_64)

Label: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 Generation: Gen 2 Specs:
  • Architecture: x86_64
  • CPU: AMD Ryzen 9 9950X, 16 cores
  • Clock: 4.3 GHz, fixed
  • Memory: 128 GB DDR5
  • Storage: 1 TB NVMe
  • Network: 10 Gbps
  • Tenancy: dedicated, bare metal
  • Noise level: under 0.5%, so a 1.7% change stands out from the noise with 99% confidence
  • OS: Ubuntu 24.04

Arm Cortex-A72 (arm64)

Label: codspeed-macro-arm64-graviton-ubuntu-22-04 Generation: Gen 1 Specs:
  • Architecture: arm64
  • CPU: Arm Cortex-A72, 16 cores
  • Clock: 2.3 GHz, fixed
  • Memory: 32 GB DDR4
  • Storage: 80 GB SSD
  • Network: up to 10 Gbps
  • Tenancy: dedicated, bare metal
  • Noise level: under 1%, so a 3.3% change stands out from the noise with 99% confidence
  • OS: Ubuntu 22.04
Custom runnersNeed another architecture, operating system, or hardware spec? On the Enterprise plan, CodSpeed can provide a dedicated pool of Macro Runners built to your requirements. Contact us to discuss your setup.

Usage and limits

Macro Runner minutes draw from the usage credits of your organization, at the same rate on every plan. Your plan also sets the queue priority of your benchmark jobs and how many of them run at the same time:
Open Source ProjectsNon-commercial projects released under an OSI-approved license can apply to the Open Source program for free usage credits every month.

Setup with GitHub Actions

Point the benchmark job at a macro runner by replacing its runs-on with the label of the runner, and run the walltime instrument:
.github/workflows/codspeed.yml

Macro Runners on GitHub Actions

Prerequisites, workflow setup and repository access

Setup with CircleCI

On CircleCI, a macro runner is a self-hosted runner resource class that CodSpeed creates and operates in your CircleCI organization. Setting it up takes one CircleCI personal API token and one resource_class line on the benchmark job.

Macro Runners on CircleCI

Run the benchmark jobs of your CircleCI pipelines on macro runners
A former label keeps working and lands on the same machine as the current one:
  • codspeed-macro-x86-ryzen-9950x-ubuntu-24-04 for the Ryzen runner.
  • codspeed-macro for the Cortex-A72 runner, the label it had before the machines were named individually.

Next Steps

Walltime Instrument

Learn how to use the walltime instrument with macro runners

Understanding Metrics

Interpret your walltime benchmark results

Performance Checks

Set up automated performance regression detection

Plans & Billing

Plans, usage credits, and active contributors