diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 85f0f72f..0b5636c6 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -55,3 +55,38 @@ jobs: with: run: cargo codspeed run token: ${{ secrets.CODSPEED_TOKEN }} + walltime: + name: Wall-time + runs-on: codspeed-macro + steps: + - name: Checkout Branch + uses: taiki-e/checkout-action@v1 + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + cache: pnpm + + - name: Setup benchmark data + run: cd benches && pnpm install --ignore-workspace + + - uses: Boshen/setup-rust@main + with: + cache-key: benchmark + save-cache: ${{ github.ref_name == 'main' }} + tools: cargo-codspeed + + - uses: ./.github/actions/pnpm + - name: Build Benchmark + env: + RUSTFLAGS: "-C debuginfo=1 -C strip=none -g" + run: cargo codspeed build + + - name: Run benchmark + uses: CodSpeedHQ/action@v3 + timeout-minutes: 30 + with: + run: cargo codspeed run + token: ${{ secrets.CODSPEED_TOKEN }}