Skip to content

Commit

Permalink
add CI script for benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Apr 18, 2024
1 parent d7ccbe0 commit 745d903
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/next_swc_benchmark.yml
@@ -0,0 +1,24 @@
name: next_swc Benchmark
on:
workflow_dispatch: {}
jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
matrix:
pages: [0, 1, 12]
steps:
- uses: actions/checkout
- name: Install heaptrack
run: apt install heaptrack
- name: Build binary
run: cargo build --profile release-with-debug --manifest-path $GITHUB_WORKSPACE/packages/next-swc/crates/next-build-test/Cargo.toml
- name: Run benchmark
run: bash bench.sh 29de71d77fd3db93c33cc3886c64a32ad889278f ${{ matrix.pages }}
- name: Print results
run: tail -n 7 result.log
- name: Upload reports
uses: actions/upload-artifact@v4
with:
name: resport
path: result.log

0 comments on commit 745d903

Please sign in to comment.