-
Notifications
You must be signed in to change notification settings - Fork 51
47 lines (37 loc) · 1.15 KB
/
blst-benchmarks.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
40
41
42
43
44
45
46
47
name: blst benchmarks
on: [push, pull_request, workflow_dispatch]
env:
C_KZG_4844_GIT_HASH: '5703f6f3536b7692616bc289ac3f3867ab8db9d8'
jobs:
benchmarks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-11]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
- uses: actions/setup-go@v2
with:
go-version: ^1.19
- name: "[blst] Benchmark"
uses: actions-rs/cargo@v1
with:
command: bench
args: --manifest-path blst/Cargo.toml
- name: "[blst] Benchmark (parallel)"
uses: actions-rs/cargo@v1
with:
command: bench
args: --manifest-path blst/Cargo.toml --features parallel
- name: "[blst] Benchmark (c-kzg-4844)"
if: matrix.os == 'ubuntu-latest'
run: |
cd blst && bash run-c-kzg-4844-benches.sh
- name: "[blst] Benchmark (c-kzg-4844 parallel)"
if: matrix.os == 'ubuntu-latest'
run: |
cd blst && bash run-c-kzg-4844-benches.sh --parallel