> ## Documentation Index
> Fetch the complete documentation index at: https://codspeed.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Macro Runners

> Use CodSpeed's bare-metal runners for precise walltime measurements in your CI pipeline

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](https://codspeed.io/docs/instruments/walltime.md)
measurements** with low variance.

> [!TIP]
>
> Read our detailed post on [the consistency of CodSpeed Macro runners compared
> to traditional CI
> runners](https://codspeed.io/blog/benchmarks-in-ci-without-noise).

## What are Macro Runners?

Macro runners are **bare-metal machines** specifically optimized for consistency
in performance measurements. They complement CodSpeed's
[CPU simulation](https://codspeed.io/docs/instruments/cpu.md) 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

> [!TIP]
>
> **CPU Simulation vs Walltime with Macro Runners**
>
> Use the [CPU Simulation instrument](https://codspeed.io/docs/instruments/cpu.md) for pure algorithmic
> performance and the [Walltime instrument](https://codspeed.io/docs/instruments/walltime.md) 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

**Pricing**

| Plan | Available | Price |
| - | - | - |
| Hobby | | \$0.064 per minute, from credits |
| Team | | \$0.064 per minute, from credits |
| Enterprise | | Volume discounts |

### 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

**Pricing**

| Plan | Available | Price |
| - | - | - |
| Hobby | | \$0.032 per minute, from credits |
| Team | | \$0.032 per minute, from credits |
| Enterprise | | Volume discounts |

> [!TIP]
>
> **Custom runners**
>
> Need another architecture, operating system, or hardware spec? On the
> [Enterprise plan](https://codspeed.io/docs/features/plans-and-billing.md#enterprise), CodSpeed can provide
> a dedicated pool of Macro Runners built to your requirements.
> [Contact us](mailto:contact@codspeed.io) to discuss your setup.

### Usage and limits

Macro Runner minutes draw from the
[usage credits](https://codspeed.io/docs/features/plans-and-billing.md#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:

| Plan | Queue priority | Concurrent jobs |
| :- | :- | :- |
| Hobby | Low | 1 |
| Team | Normal | 4 |
| Enterprise | Highest, dedicated runner pool | Custom |

> [!TIP]
>
> **Open Source Projects**
>
> Non-commercial projects released under an OSI-approved license can apply to the
> [Open Source program](https://codspeed.io/docs/features/plans-and-billing.md#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](#runners), and run the [walltime](https://codspeed.io/docs/instruments/walltime.md)
instrument:

> [tab] AMD Ryzen 9950X
>
> ```yaml .github/workflows/codspeed.yml theme={null}
> jobs:
>   benchmarks:
>     runs-on: ubuntu-latest # [!code --]
>     runs-on: codspeed-macro-x64-ryzen-9950x-ubuntu-24-04 # [!code ++]
> ```

> [tab] Arm Cortex-A72
>
> ```yaml .github/workflows/codspeed.yml theme={null}
> jobs:
>   benchmarks:
>     runs-on: ubuntu-latest # [!code --]
>     runs-on: codspeed-macro-arm64-graviton-ubuntu-22-04 # [!code ++]
> ```

> [card] [Macro Runners on GitHub Actions](https://codspeed.io/docs/integrations/ci/github-actions/macro-runners.md)
>
> 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.

> [card] [Macro Runners on CircleCI](https://codspeed.io/docs/integrations/ci/circleci/macro-runners.md)
>
> Run the benchmark jobs of your CircleCI pipelines on macro runners

> [!NOTE]
>
> 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

> [card] [Walltime Instrument](https://codspeed.io/docs/instruments/walltime.md)
>
> Learn how to use the walltime instrument with macro runners

> [card] [Understanding Metrics](https://codspeed.io/docs/features/understanding-the-metrics.md)
>
> Interpret your walltime benchmark results

> [card] [Performance Checks](https://codspeed.io/docs/features/performance-checks.md)
>
> Set up automated performance regression detection

> [card] [Plans & Billing](https://codspeed.io/docs/features/plans-and-billing.md)
>
> Plans, usage credits, and active contributors


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.