File tree 4 files changed +10
-17
lines changed
4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Benchmark Applications
2
2
3
3
on :
4
- push :
5
- branches : [ main ]
6
- # Only run benchmarks on changes to following paths:
7
- paths :
8
- - ' risc0/**'
9
- - ' .github/workflows/bench_*'
4
+ # push:
5
+ # branches: [ main ]
6
+ # # Only run benchmarks on changes to following paths:
7
+ # paths:
8
+ # - 'risc0/**'
9
+ # - '.github/workflows/bench_*'
10
10
11
11
# # uncomment for only for testing changes to this workflow while in a PR
12
12
# pull_request:
@@ -28,6 +28,7 @@ permissions:
28
28
contents : read
29
29
30
30
env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
32
RISC0_TOOLCHAIN_VERSION : test-release-2
32
33
33
34
jobs :
65
66
with :
66
67
key : ${{ matrix.os }}-${{ matrix.feature }}
67
68
- run : cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
68
- env :
69
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
69
- run : cargo run --release --bin risc0-benchmark -F $FEATURE -- --out ${{ matrix.os }}-${{ matrix.device }}.csv all
71
70
working-directory : benchmarks
72
71
- run : cargo run --release --bin average -F $FEATURE -- --out ${{ matrix.os }}-${{ matrix.device }}.average.csv all
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ permissions:
28
28
contents : read
29
29
30
30
env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
32
RISC0_BUILD_LOCKED : 1
32
33
RISC0_TOOLCHAIN_VERSION : test-release-2
33
34
66
67
with :
67
68
key : ${{ matrix.os }}-${{ matrix.feature }}
68
69
- run : cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
69
- env :
70
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
70
- run : cargo run --release -F $FEATURE --example loop -- --json | tee ${{ matrix.os }}-${{ matrix.device }}.json
72
71
working-directory : risc0/zkvm
73
72
- run : cargo run --release -- --out ../../risc0/zkvm/cycle_count.csv all
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ permissions:
13
13
contents : read
14
14
15
15
env :
16
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
16
17
RISC0_BUILD_LOCKED : 1
17
18
RISC0_TOOLCHAIN_VERSION : test-release-2
18
19
30
31
- os : Linux
31
32
feature : cuda
32
33
device : nvidia_rtx_a5000
33
- - os : macOS
34
- feature : metal
35
- device : apple_m2_pro
36
34
37
35
env :
38
36
FEATURE : ${{ matrix.feature }}
48
46
with :
49
47
key : ${{ matrix.os }}-${{ matrix.feature }}
50
48
- run : cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
51
- env :
52
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
49
- uses : risc0/criterion-compare-action@risc0
54
50
id : criterion-cmp
55
51
with :
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ permissions:
22
22
contents : read
23
23
24
24
env :
25
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
26
RISC0_BUILD_LOCKED : 1
26
27
RISC0_TOOLCHAIN_VERSION : test-release-2
27
28
57
58
with :
58
59
key : ${{ matrix.os }}-${{ matrix.feature }}
59
60
- run : cargo run --bin cargo-risczero --no-default-features -- risczero install --version $RISC0_TOOLCHAIN_VERSION
60
- env :
61
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
62
61
- run : cargo bench -F $FEATURE --bench fib -- --output-format=bencher | tee output.txt
63
62
- name : Store benchmark result
64
63
uses : risc0/github-action-benchmark@risc0
You can’t perform that action at this time.
0 commit comments