-
Notifications
You must be signed in to change notification settings - Fork 51
50 lines (39 loc) · 1.29 KB
/
mcl-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
48
49
50
name: mcl 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]
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: "[mcl] Build native libs for Linux"
if: matrix.os == 'ubuntu-latest'
run: |
cd mcl/kzg && bash build.sh
- name: "[mcl] Benchmark"
if: matrix.os == 'ubuntu-latest'
run: |
cargo bench --manifest-path mcl/kzg-bench/Cargo.toml
- name: "[mcl] Benchmark (parallel)"
if: matrix.os == 'ubuntu-latest'
run: |
cargo bench --manifest-path mcl/kzg-bench/Cargo.toml --features rust-kzg-mcl/parallel
#- name: "[mcl] Benchmark (c-kzg-4844)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-benches.sh
#- name: "[mcl] Benchmark (c-kzg-4844 parallel)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-benches.sh --parallel