@@ -34,19 +34,63 @@ jobs:
3434 - name : Generate gates report
3535 run : ./scripts/build-gates-report.sh
3636 env :
37- BACKEND : /home/runner/.bb/bb
37+ BACKEND : /home/runner/.bb/bb
3838
39- - name : Compare gates reports
40- id : gates_diff
41- uses : noir-lang/noir-gates-diff@dbe920a8dcc3370af4be4f702ca9cef29317bec1
39+ - name : Store ACIR opcode benchmark result
40+ uses : benchmark-action/github-action-benchmark@v1
4241 with :
43- report : gates_report.json
44- summaryQuantile : 0.9 # only display the 10% most significant circuit size diffs in the summary (defaults to 20%)
42+ name : " ACIR Opcodes"
43+ tool : " customSmallerIsBetter"
44+ output-file-path : " benchmark-opcodes.json"
45+ gh-pages-branch : " gh-pages"
46+ benchmark-data-dir-path : " dev/bench"
47+ github-token : ${{ secrets.GITHUB_TOKEN }}
48+ auto-push : ${{ github.ref == 'refs/heads/main' }}
49+ comment-always : ${{ contains( github.event.pull_request.labels.*.name, 'bench-show') }}
50+ comment-on-alert : true
51+ alert-threshold : " 101%"
52+ fail-on-alert : false
53+ max-items-in-chart : 50
4554
46- - name : Add gates diff to sticky comment
47- if : github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
48- uses : marocchino/sticky-pull-request-comment@v2
55+ - name : Store gates benchmark result
56+ uses : benchmark-action/github-action-benchmark@v1
4957 with :
50- # delete the comment in case changes no longer impact circuit sizes
51- delete : ${{ !steps.gates_diff.outputs.markdown }}
52- message : ${{ steps.gates_diff.outputs.markdown }}
58+ name : " Circuit Size"
59+ tool : " customSmallerIsBetter"
60+ output-file-path : " benchmark-circuit.json"
61+ gh-pages-branch : " gh-pages"
62+ benchmark-data-dir-path : " dev/bench"
63+ github-token : ${{ secrets.GITHUB_TOKEN }}
64+ auto-push : ${{ github.ref == 'refs/heads/main' }}
65+ comment-always : ${{ contains( github.event.pull_request.labels.*.name, 'bench-show') }}
66+ comment-on-alert : true
67+ alert-threshold : " 101%"
68+ fail-on-alert : false
69+ max-items-in-chart : 50
70+ skip-fetch-gh-pages : true
71+
72+ - name : Delete export files
73+ run : rm -rf export
74+
75+ - name : Build Brillig benchmark programs
76+ run : nargo export --force-brillig
77+
78+ - name : Generate brillig report
79+ run : ./ethereum/scripts/build-brillig-report.sh
80+
81+ - name : Store brillig benchmark result
82+ uses : benchmark-action/github-action-benchmark@v1
83+ with :
84+ name : " Brillig Bytecode Size"
85+ tool : " customSmallerIsBetter"
86+ output-file-path : " benchmark-brillig.json"
87+ gh-pages-branch : " gh-pages"
88+ benchmark-data-dir-path : " dev/bench"
89+ github-token : ${{ secrets.GITHUB_TOKEN }}
90+ auto-push : ${{ github.ref == 'refs/heads/main' }}
91+ comment-always : ${{ contains( github.event.pull_request.labels.*.name, 'bench-show') }}
92+ comment-on-alert : true
93+ alert-threshold : " 101%"
94+ fail-on-alert : false
95+ max-items-in-chart : 50
96+ skip-fetch-gh-pages : true
0 commit comments