Skip to content

Commit 745d903

Browse files
committed
add CI script for benchmarks
1 parent d7ccbe0 commit 745d903

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: .github/workflows/next_swc_benchmark.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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: resport
24+
path: result.log

0 commit comments

Comments
 (0)