Skip to content

Commit 61a5f25

Browse files
committed
Attempt to integrate rust benchmarking (mix of EZKL benches + existing zk).. Going to pivot to python due to the difficulty of implementing a circuit for MNIST
1 parent 401c981 commit 61a5f25

File tree

144 files changed

+52051
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+52051
-11
lines changed

.github/workflows/benchmarks.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323

2424
jobs:
2525
start-runner:
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-latest
2727
steps:
2828
- name: Configure AWS credentials
2929
uses: aws-actions/configure-aws-credentials@v1
@@ -160,12 +160,12 @@ jobs:
160160
BENCHY_OUTPUT_DIR: "../../.benchmarks/${{ matrix.runner }}"
161161
run: |
162162
cargo bench -F metal
163-
163+
164164
- name: Upload .benchmarks as artifact
165165
uses: actions/upload-artifact@v3
166166
with:
167167
path: .benchmarks/
168-
168+
169169
noir:
170170
runs-on: ${{ matrix.runner }}
171171
strategy:
@@ -219,7 +219,6 @@ jobs:
219219
override: true
220220

221221
- uses: Swatinem/rust-cache@v2
222-
223222
- name: Run Leo benchmarks
224223
working-directory: ./leo
225224
env:
@@ -231,7 +230,6 @@ jobs:
231230
uses: actions/upload-artifact@v3
232231
with:
233232
path: .benchmarks/
234-
235233
commit:
236234
runs-on: ubuntu-latest
237235
needs: [polylang, miden, risc_zero, noir]
@@ -246,7 +244,6 @@ jobs:
246244

247245
- name: Combine results
248246
run: ./combine.py
249-
250247
- name: Copy benchmark results to site
251248
run: |
252249
cp benchmarks.json site/src/fixtures/benchmarks.json
@@ -270,10 +267,5 @@ jobs:
270267
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
271268
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
272269
aws-region: us-east-1
273-
274270
- name: Stop EC2 instance
275271
run: aws ec2 stop-instances --instance-ids ${{ env.INSTANCE_ID }}
276-
277-
278-
279-

Pipfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
torch = "==2.1.0"
8+
9+
[dev-packages]
10+
11+
[requires]
12+
python_version = "3.11"

Pipfile.lock

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)