From 4a99f1a848f3c7e19d84800fce0f257099c83e74 Mon Sep 17 00:00:00 2001 From: not-matthias Date: Wed, 21 Jan 2026 15:54:06 +0100 Subject: [PATCH 1/2] fix: remove outdated `analysis` mode --- .github/workflows/benchmarks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index e195e7606..b90b0b819 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -62,9 +62,9 @@ jobs: shell: bash run: cargo install cargo-codspeed --locked - - name: Build benchmarks for memory analysis + - name: Build benchmarks for memory shell: bash - run: cargo codspeed build -m analysis + run: cargo codspeed build - name: Run memory benchmarks uses: CodSpeedHQ/action@v4 From d8858ce811f60d941ccdc03f2afb906accb54096 Mon Sep 17 00:00:00 2001 From: not-matthias Date: Wed, 21 Jan 2026 15:58:35 +0100 Subject: [PATCH 2/2] refactor: use matrix to reduce deduplication --- .github/workflows/benchmarks.yml | 40 +++++++------------------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b90b0b819..1e1759884 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -18,8 +18,13 @@ concurrency: jobs: benchmarks: - name: Run performance benchmarks (CodSpeed) + name: Run ${{ matrix.mode }} benchmarks (CodSpeed) runs-on: ubuntu-latest + strategy: + matrix: + mode: + - simulation + - memory steps: - uses: actions/checkout@v6 with: @@ -37,40 +42,11 @@ jobs: shell: bash run: cargo codspeed build - - name: Run performance benchmarks + - name: Run benchmarks uses: CodSpeedHQ/action@v4 env: CODSPEED_LOG: debug with: - mode: simulation - run: cargo codspeed run > /dev/null - token: ${{ secrets.CODSPEED_TOKEN }} - - memory-benchmarks: - name: Run memory benchmarks (CodSpeed) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - with: - persist-credentials: false - - - uses: dtolnay/rust-toolchain@stable - - - uses: Swatinem/rust-cache@v2 - - - name: Install cargo-codspeed - shell: bash - run: cargo install cargo-codspeed --locked - - - name: Build benchmarks for memory - shell: bash - run: cargo codspeed build - - - name: Run memory benchmarks - uses: CodSpeedHQ/action@v4 - env: - CODSPEED_LOG: debug - with: - mode: memory + mode: ${{ matrix.mode }} run: cargo codspeed run > /dev/null token: ${{ secrets.CODSPEED_TOKEN }}