From 35cb870f40222c2bbf802e1390d59c40f70049c8 Mon Sep 17 00:00:00 2001 From: Alexander Lyon Date: Fri, 24 May 2024 11:50:09 +0100 Subject: [PATCH] benchmark and publish data for shadcn/ui --- .github/workflows/next_swc_benchmark.yml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/next_swc_benchmark.yml diff --git a/.github/workflows/next_swc_benchmark.yml b/.github/workflows/next_swc_benchmark.yml new file mode 100644 index 0000000000000..8315900b75bdf --- /dev/null +++ b/.github/workflows/next_swc_benchmark.yml @@ -0,0 +1,26 @@ +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: report + path: | + result.log + heaptrack.*