Skip to content

Commit 6f07684

Browse files
authored
chore(ci): Add large benchmark (#79793)
### What? Configure a large benchmark for turbopack. ### Why? We may want to run a full benchmark for some PRs.
1 parent 2118226 commit 6f07684

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/turbopack-benchmark.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,28 @@ jobs:
4949
with:
5050
run: cargo codspeed run
5151
token: ${{ secrets.CODSPEED_TOKEN }}
52+
53+
benchmark-large:
54+
name: Benchmark Rust Crates (large)
55+
# If the task is triggered manually, we want to run the large benchmarks
56+
if: ${{ github.event_name == 'workflow_dispatch' }}
57+
runs-on: ubuntu-22.04
58+
steps:
59+
- uses: actions/checkout@v4
60+
61+
- name: Setup Rust toolchain
62+
uses: ./.github/actions/setup-rust
63+
64+
- name: Install cargo-codspeed
65+
uses: taiki-e/install-action@v2
66+
with:
67+
68+
69+
- name: Build the benchmark target(s)
70+
run: cargo codspeed build -p turbopack -p turbopack-bench
71+
72+
- name: Run the benchmarks
73+
uses: CodSpeedHQ/action@v3
74+
with:
75+
run: cargo codspeed run
76+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)