-
Notifications
You must be signed in to change notification settings - Fork 102
49 lines (47 loc) · 1.53 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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