Skip to content

v0.9.1

v0.9.1 #1756

Workflow file for this run

name: Benchmark
on: [pull_request]
jobs:
bench:
name: Bench
runs-on: ubuntu-latest
steps:
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Checkout repository base
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
- name: Run cargo bench on base
run: cargo bench --bench reactivity --bench ssr
- name: Checkout repository head
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
clean: false # Do not remove benchmark results from base branch
- name: Run cargo bench on head
run: cargo bench --bench reactivity --bench ssr
- name: Upload benchmark report
uses: actions/upload-artifact@v3
with:
name: Benchmark report
path: target/criterion/