diff --git a/.github/workflows/track_benchmark.yml b/.github/workflows/track_benchmark.yml new file mode 100644 index 0000000000..b8bd186a3d --- /dev/null +++ b/.github/workflows/track_benchmark.yml @@ -0,0 +1,37 @@ +name: Track Benchmark + +on: + push: + paths-ignore: ["docs/**", "**.md"] + branches: + - main + pull_request: + paths-ignore: ["docs/**", "**.md"] + +jobs: + track_benchmark_with_bencher: + name: Track Benchmarks with Bencher + permissions: + pull-requests: write + contents: write + runs-on: ubuntu-latest + env: + BENCHER_PROJECT: tailcall-2192953494 + BENCHER_ADAPTER: rust_criterion + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install Bencher CLI + uses: bencherdev/bencher@main + + - name: Track base Benchmarks + run: | + bencher run \ + --token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhcGlfa2V5IiwiZXhwIjoxNzIwMDYyMTI4LCJpYXQiOjE3MTAwNjIxMjgsImlzcyI6ImJlbmNoZXIuZGV2Iiwic3ViIjoiZGFicmFsYWxhbmtyaXRAZ21haWwuY29tIiwib3JnIjpudWxsfQ.0QUtYqWgPtyYV8d6SsK2m4hNoa88r6aSI6Ojupatd3s \ + 'cargo bench'