feat: introduce schemas #1346
Workflow file for this run
This file contains hidden or 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 comparison | |
| 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" | |
| count: | |
| description: "Number of times to run each benchmark " | |
| required: false | |
| default: 1 | |
| pull_request: | |
| types: [assigned, opened, synchronize, reopened, labeled] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| BenchmarkCompare: | |
| runs-on: "github-001" | |
| if: github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'benchmarks') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| filter: tree:0 # treeless clone, faster to clone as history and blobs are only fetched when needed. | |
| - 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 | |
| writes compare ${{ inputs.bench }} ${{ inputs.parallelism }} ${{ inputs.duration }} ${{ inputs.count }} | |
| - 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 | |
| writes graphs | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: graphs | |
| path: test/performance/pkg/write/report |