@@ -15,35 +15,79 @@ jobs:
1515 uses : actions/checkout@v4
1616
1717 - name : Install Nargo
18- uses :
noir-lang/[email protected] .3 18+ uses :
noir-lang/[email protected] .4 1919 with :
20- toolchain : 1.0.0-beta.3
20+ toolchain : 1.0.0-beta.17
2121
2222 - name : Install bb
2323 run : |
24- npm install -g bbup
25- bbup -nv 1.0.0-beta.3
26- sudo apt install libc++-dev
24+ curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/next/barretenberg/bbup/install | bash
25+ ~/.bb/bbup -nv 1.0.0-beta.17
2726
2827 - name : Build Noir benchmark programs
2928 run : nargo export
30-
31- - name : Generate gates report
29+
30+ - name : Generate gate report
3231 run : ./scripts/build-gates-report.sh
3332 env :
34- BACKEND : /home/runner/.bb/bb
33+ BACKEND : /home/runner/.bb/bb
34+
35+
36+ - name : Store ACIR opcode benchmark result
37+ uses : benchmark-action/github-action-benchmark@v1
38+ with :
39+ name : " ACIR Opcodes"
40+ tool : " customSmallerIsBetter"
41+ output-file-path : " benchmark-opcodes.json"
42+ gh-pages-branch : " gh-pages"
43+ benchmark-data-dir-path : " dev/bench"
44+ github-token : ${{ secrets.GITHUB_TOKEN }}
45+ auto-push : ${{ github.ref == 'refs/heads/master' }}
46+ comment-always : ${{ contains( github.event.pull_request.labels.*.name, 'bench-show') }}
47+ comment-on-alert : true
48+ alert-threshold : " 101%"
49+ fail-on-alert : false
50+ max-items-in-chart : 50
3551
36- - name : Compare gates reports
37- id : gates_diff
38- uses : noir-lang/noir-gates-diff@dbe920a8dcc3370af4be4f702ca9cef29317bec1
52+ - name : Store gates benchmark result
53+ uses : benchmark-action/github-action-benchmark@v1
3954 with :
40- report : gates_report.json
41- summaryQuantile : 0.9 # only display the 10% most significant circuit size diffs in the summary (defaults to 20%)
55+ name : " Circuit Size"
56+ tool : " customSmallerIsBetter"
57+ output-file-path : " benchmark-circuit.json"
58+ gh-pages-branch : " gh-pages"
59+ benchmark-data-dir-path : " dev/bench"
60+ github-token : ${{ secrets.GITHUB_TOKEN }}
61+ auto-push : ${{ github.ref == 'refs/heads/master' }}
62+ comment-always : ${{ contains( github.event.pull_request.labels.*.name, 'bench-show') }}
63+ comment-on-alert : true
64+ alert-threshold : " 101%"
65+ fail-on-alert : false
66+ max-items-in-chart : 50
67+ skip-fetch-gh-pages : true
68+
69+ - name : Delete export files
70+ run : rm -rf export
71+
72+ - name : Build Brillig benchmark programs
73+ run : nargo export --force-brillig
74+
75+ - name : Generate brillig report
76+ run : ./scripts/build-brillig-report.sh
4277
43- - name : Add gates diff to sticky comment
44- if : github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
45- uses : marocchino/sticky-pull-request-comment@v2
78+ - name : Store brillig benchmark result
79+ uses : benchmark-action/github-action-benchmark@v1
4680 with :
47- # delete the comment in case changes no longer impact circuit sizes
48- delete : ${{ !steps.gates_diff.outputs.markdown }}
49- message : ${{ steps.gates_diff.outputs.markdown }}
81+ name : " Brillig Bytecode Size"
82+ tool : " customSmallerIsBetter"
83+ output-file-path : " benchmark-brillig.json"
84+ gh-pages-branch : " gh-pages"
85+ benchmark-data-dir-path : " dev/bench"
86+ github-token : ${{ secrets.GITHUB_TOKEN }}
87+ auto-push : ${{ github.ref == 'refs/heads/master' }}
88+ comment-always : ${{ contains( github.event.pull_request.labels.*.name, 'bench-show') }}
89+ comment-on-alert : true
90+ alert-threshold : " 101%"
91+ fail-on-alert : false
92+ max-items-in-chart : 50
93+ skip-fetch-gh-pages : true
0 commit comments