-
Notifications
You must be signed in to change notification settings - Fork 154
39 lines (31 loc) · 989 Bytes
/
bench.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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/