Skip to content

feat: benchmarking script #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
c3ab605
fix: husky precommit
xorsal Mar 20, 2025
1161af6
feat: upgrade to v81
xorsal Mar 20, 2025
cc283f7
feat: use new partial note impl
xorsal Mar 20, 2025
dabd625
feat: update libs
xorsal Mar 20, 2025
00317f1
feat: update Token contract
xorsal Mar 20, 2025
6cb0219
test: update tests
xorsal Mar 20, 2025
4a1bbfc
chore: fmt
xorsal Mar 20, 2025
080fd0d
test: update tests
xorsal Mar 20, 2025
726b655
test: use deployFundedSchnorrAccounts instead of createAccount
xorsal Mar 20, 2025
65dc77d
fix: unconstraining authwit lib method (#62)
wei3erHase Mar 21, 2025
4f566f2
test: use `getInitialTestAccountsWallets`
xorsal Mar 21, 2025
27b1d5f
test: uint notes values now have a different order
xorsal Mar 21, 2025
c875497
test: skip public transfer with authwith
xorsal Mar 21, 2025
0258ec4
chore: replace "partial notes" and "hiding point" with "commitment"
xorsal Mar 24, 2025
a6103ef
chore: delete address note
xorsal Mar 24, 2025
99fe27a
chore: upgrade to v0.82.1
xorsal Mar 24, 2025
a142a43
chore: remove uint-note
xorsal Mar 24, 2025
afc10f6
chore: use aztec-packages uint-note
xorsal Mar 24, 2025
d7da08b
chore: ugprade to v0.82.2
xorsal Mar 24, 2025
8f4173f
test: update tests
xorsal Mar 24, 2025
299f75b
test: update ts tests to the newer Wallet interface
xorsal Mar 24, 2025
45f0e02
ci: temporary disable TS tests in workflow
xorsal Mar 24, 2025
f770bdd
test: add benchmarking script
xorsal Mar 21, 2025
fc11f88
chore: add @aztec/stdlib and tsx
xorsal Mar 21, 2025
a37467c
test: move token deploy functions to utils
xorsal Mar 21, 2025
7e35007
chore: use correct token contract artifact
xorsal Mar 25, 2025
27c0b69
feat: add bash script to use `aztec-wallet profile`
xorsal Mar 25, 2025
0ca84ce
feat: comment non-private functions
xorsal Mar 25, 2025
eae456f
ci: run bench and display
xorsal Mar 25, 2025
e6ec996
ci: run the sandbox, required by the profiler
xorsal Mar 25, 2025
ecacdfb
feat: specify constructor name
xorsal Mar 25, 2025
29d2528
feat: add gas measurement in bench script
xorsal Mar 25, 2025
9cd54ef
Merge branch 'dev' into feat/benchmarking-script
xorsal Apr 3, 2025
ba3521a
ci(token): benchmarking diff (#74)
xorsal Apr 18, 2025
81ee339
Merge branch 'dev' into feat/benchmarking-script
xorsal Apr 21, 2025
8826eff
feat: multiple contracts benchmark running and report
0xmoebius Apr 23, 2025
81256bf
fix: update gh task
0xmoebius Apr 23, 2025
a6798cc
fix: remove old script
0xmoebius Apr 23, 2025
a9089c4
feat: remove code moved to action. update ci
0xmoebius Apr 24, 2025
a50f7ce
fix: invalid action keys
0xmoebius Apr 24, 2025
235a963
fix: typo
0xmoebius Apr 24, 2025
92144a8
fix: debugging action
0xmoebius Apr 24, 2025
e99de74
fix: debugging action
0xmoebius Apr 24, 2025
494c0da
fix: debugging action
0xmoebius Apr 24, 2025
ed89917
fix: debugging action
0xmoebius Apr 24, 2025
b5def21
fix: debugging action
0xmoebius Apr 24, 2025
10e8d9d
fix: debugging action
xorsal Apr 24, 2025
fdc6ef0
fix: debugging action
xorsal Apr 24, 2025
af33979
fix: debugging action
xorsal Apr 24, 2025
2eb555d
fix: debugging action
xorsal Apr 24, 2025
7c57e32
fix: trigger ci
0xmoebius Apr 25, 2025
34731b0
fix: trigger ci
0xmoebius Apr 25, 2025
92c0408
fix: trigger ci
0xmoebius Apr 25, 2025
295ece4
fix: dont run tests for now
0xmoebius Apr 25, 2025
634dcbe
fix: trigger ci
0xmoebius Apr 25, 2025
9dbcbaa
fix: refactor action
0xmoebius Apr 29, 2025
f56726e
fix: action path
0xmoebius Apr 29, 2025
d51a812
fix: action path
0xmoebius Apr 29, 2025
ae5b7eb
fix: trigger new action branch
0xmoebius Apr 29, 2025
7d52d97
fix: trigger ci
0xmoebius Apr 29, 2025
31d3ec2
fix: install published package
0xmoebius Apr 30, 2025
748098e
fix: new ver
0xmoebius Apr 30, 2025
3489576
fix: move to dev dep
0xmoebius Apr 30, 2025
cbcfd0a
fix: import path
0xmoebius Apr 30, 2025
f7bbe38
fix: remove latest benchmark
0xmoebius Apr 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 31 additions & 14 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ on:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, edited]

permissions:
pull-requests: write

jobs:
setup-and-run:
tests:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
AZTEC_VERSION: "0.85.0"

steps:
- name: Checkout repository
Expand All @@ -26,29 +32,40 @@ jobs:

- name: Set Aztec version
run: |
VERSION=0.85.0 aztec-up
VERSION=${AZTEC_VERSION} aztec-up

- name: Start sandbox
run: |
aztec start --sandbox &

- name: Install project dependencies
run: yarn

- name: Compile
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"

- name: Codegen
run: script -e -c "aztec codegen target --outdir src/artifacts"

- name: Benchmark
uses: defi-wonderland/aztec-benchmark-diff/action@fix/troubleshoot
with:
threshold: '2.0'
output_markdown_path: 'benchmark_diff.md'

- name: Start PXE
run: |
VERSION=0.85.0 aztec start --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ --pxe.proverEnabled false &

- name: Run nr tests
run: |
script -e -c "aztec test"

- name: Run js tests
run: script -e -c "BASE_PXE_URL=http://localhost NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json"
- name: Comment diff
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body-file: benchmark_diff.md

# - name: Start PXE
# run: |
# VERSION=${AZTEC_VERSION} aztec start --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ --pxe.proverEnabled false &
#
# - name: Run nr tests
# run: |
# script -e -c "aztec test"
#
# - name: Run js tests
# run: script -e -c "BASE_PXE_URL=http://localhost NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --config jest.integration.config.json"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ log/
codegenCache.json
.env
.cursor

# Locally generated benchmark files
src/**/*benchmark_latest.json
bench_diff.md
7 changes: 5 additions & 2 deletions Nargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[workspace]
members = [
"src/token_contract"
]
"src/token_contract"
]

[benchmark]
token = 'benchmarks/token_contract.benchmark.ts'
Loading