-
Notifications
You must be signed in to change notification settings - Fork 14
59 lines (57 loc) · 1.81 KB
/
Copy pathbenchmarks.yml
File metadata and controls
59 lines (57 loc) · 1.81 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: benchmarks
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
jobs:
benchmarks_with_bencher:
name: rust
permissions:
pull-requests: write
runs-on: ubuntu-latest
strategy:
matrix:
rust_bench: [ "commit", "encryption", "key_package", "create_group", "transaction" ]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-and-cache-rust
- uses: actions/checkout@v6
- name: run bencher cli
uses: ./.github/actions/run-bencher
with:
bencher-api-token: ${{ secrets.BENCHER_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
adapter: rust_criterion
bench-command: cargo bench --locked --bench ${{ matrix.rust_bench }} -- --quick
web_benchmarks_with_bencher:
name: web
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-and-cache-rust
with:
target: "wasm32-unknown-unknown"
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install wasm-bindgen-cli
uses: ./.github/actions/setup-wasm-bindgen
- name: bench wasm/js
run: |
make ts-bench RELEASE=1
- uses: actions/checkout@v6
with:
# Keep result file
clean: 'false'
- name: run bencher cli
uses: ./.github/actions/run-bencher
with:
bencher-api-token: ${{ secrets.BENCHER_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
directory: ${{ github.workspace }}/crypto-ffi/bindings/js
adapter: json
# No bench command, as we run the bench before calling bencher CLI.
bench-command:
bench-results-file-name: web_benchmark_results.json