Benchmark #24
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: Benchmark | |
on: | |
workflow_dispatch: | |
inputs: | |
run_benchmark: | |
description: "Please confirm running the benchmarks by typing 'yes' in the input box." | |
required: true | |
default: "no" | |
jobs: | |
wakeup: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_benchmark == 'yes' }} | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::490752553772:role/summa-solvency-ec2-slc | |
role-duration-seconds: 900 | |
aws-region: us-west-2 | |
- name: Wakeup runner | |
run: .github/scripts/wakeup.sh | |
benchmark: | |
runs-on: [summa-solvency-runner] | |
needs: [wakeup] | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.run_benchmark == 'yes' }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Benchmark Tests | |
run: | | |
cd prover | |
cargo bench | |
- name: Upload Benchmark Results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: benchmark-results | |
path: prover/target/criterion |