Skip to content

Commit dff40b5

Browse files
committed
add CI script for benchmarks
1 parent 8ffce38 commit dff40b5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: next_swc Benchmark
2+
on:
3+
workflow_dispatch: {}
4+
jobs:
5+
benchmark:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
pages: [0, 1, 12]
10+
steps:
11+
- uses: actions/checkout
12+
- name: Install heaptrack
13+
run: apt install heaptrack
14+
- name: Build binary
15+
run: cargo build --profile release-with-debug --manifest-path $GITHUB_WORKSPACE/packages/next-swc/crates/next-build-test/Cargo.toml
16+
- name: Run benchmark
17+
run: bash bench.sh 29de71d77fd3db93c33cc3886c64a32ad889278f ${{ matrix.pages }}
18+
- name: Print results
19+
run: tail -n 7 result.log
20+
- name: Upload reports
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: report
24+
path: |
25+
result.log
26+
heaptrack.*

0 commit comments

Comments
 (0)