Fix features #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |