Skip to content

Merge pull request #326 from PolyhedraZK/hc/sumcheck_move_semantics #2420

Merge pull request #326 from PolyhedraZK/hc/sumcheck_move_semantics

Merge pull request #326 from PolyhedraZK/hc/sumcheck_move_semantics #2420

Workflow file for this run

name: Run Benchmarks
env:
RUSTFLAGS: "-Dwarnings -C target-cpu=native"
RUST_BACKTRACE: 1
ACTIONS_RUNNER_DEBUG: true
# Cancel all previous runs of the same workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [push]
jobs:
benchmark:
runs-on: 7950x3d
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dependencies for Linux
run: sudo apt-get update && sudo apt-get install -y build-essential openmpi-bin libopenmpi-dev
- name: update toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install MPI
run: python3 ./scripts/install.py
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- name: Set up Google Cloud SDK
uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Install criterion
run: cargo install cargo-criterion
- name: Setup data
run: cargo run --bin=dev-setup --release
- name: Run benchmark
run: RUSTFLAGS="-C target-cpu=native" cargo criterion --message-format=json > benchmark_results.json
- name: Clean benchmark results
run: |
wget https://raw.githubusercontent.com/PolyhedraZK/Expander/main/scripts/parse_benchmark_result.py
python3 parse_benchmark_result.py benchmark_results.json benchmark_results_clean.json
- name: Upload benchmark results to Google Cloud Storage
run: |
commit_hash=$(git rev-parse HEAD)
repo_name="${GITHUB_REPOSITORY#*/}"
gsutil cp benchmark_results_clean.json gs://github_micro_bench/${repo_name}/benchmark_${commit_hash}.json