Skip to content

Commit

Permalink
bench
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 6, 2025
1 parent b993f86 commit df60173
Showing 1 changed file with 2 additions and 43 deletions.
45 changes: 2 additions & 43 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
id: list-crates
run: echo "crates=$(./scripts/bench/list-crates-with-bench.sh)" >> $GITHUB_OUTPUT

build-crate:
name: Build benchmark for ${{ matrix.crate }}
benchmark-crate:
name: Benchmark ${{ matrix.crate }}
runs-on: ubuntu-22.04
needs: list-crates
strategy:
Expand Down Expand Up @@ -69,47 +69,6 @@ jobs:
- name: Build the benchmark target(s)
run: ./scripts/bench/build-crate.sh ${{ matrix.crate }}

- name: Upload built artifacts
uses: actions/upload-artifact@v4
with:
name: bench-${{ matrix.crate }}
path: target/codspeed

bench-all:
name: Run benchmarks
needs: build-crate
runs-on:
- self-hosted
- linux
- x64
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal

- name: Install cargo-codspeed
uses: taiki-e/install-action@v2
with:
tool: cargo-codspeed@2.7.2

- run: mkdir -p target/codspeed

- name: Download built artifacts
uses: actions/download-artifact@v4
with:
pattern: bench-*
path: target/codspeed
merge-multiple: true

- run: ls -alR target/codspeed

- run: chmod -R +x target/codspeed/*

- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
with:
Expand Down

0 comments on commit df60173

Please sign in to comment.