Benchmark #644
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: | |
bench: | |
description: 'Benchmarks to run' | |
required: false | |
default: '.' | |
parallelism: | |
description: 'Number of parallel benchmarks to run' | |
required: false | |
default: 5 | |
duration: | |
description: 'Duration of each benchmark' | |
required: false | |
default: '10s' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Benchmark: | |
runs-on: "github-001" | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: 'actions/checkout@v4' | |
with: | |
fetch-depth: 0 | |
- name: Setup Env | |
uses: ./.github/actions/env | |
with: | |
token: ${{ secrets.NUMARY_GITHUB_TOKEN }} | |
- run: > | |
/nix/var/nix/profiles/default/bin/nix --extra-experimental-features "nix-command" --extra-experimental-features "flakes" | |
develop --impure --command just | |
--justfile ./test/performance/justfile | |
--working-directory ./test/performance | |
run ${{ inputs.bench }} ${{ inputs.parallelism }} ${{ inputs.duration }} 1 | |
- run: > | |
/nix/var/nix/profiles/default/bin/nix --extra-experimental-features "nix-command" --extra-experimental-features "flakes" | |
develop --impure --command just | |
--justfile ./test/performance/justfile | |
--working-directory ./test/performance | |
graphs | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: graphs | |
path: test/performance/report |