Skip to content

Commit

Permalink
chore: module benches (zkonduit#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto authored Jul 4, 2023
1 parent 3bd2b96 commit 1fdfd96
Show file tree
Hide file tree
Showing 7 changed files with 398 additions and 152 deletions.
122 changes: 118 additions & 4 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,147 @@ on:
inputs:
tags:
description: "Test scenario tags"

jobs:
benchmarks:
bench_elgamal:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-11-03
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench elgamal
run: cargo bench --verbose --bench elgamal

bench_poseidon:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench poseidon
run: cargo bench --verbose --bench poseidon

bench_einsum_accum_matmul:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench einsum accum matmul
run: cargo bench --verbose --bench accum_einsum_matmul

bench_accum_matmul_relu:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench accum matmul relu
run: cargo bench --verbose --bench accum_matmul_relu

bench_relu:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench relu
run: cargo bench --verbose --bench relu

bench_accum_dot:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench accum dot
run: cargo bench --verbose --bench accum_dot

bench_accum_conv:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench accum conv
run: cargo bench --verbose --bench accum_conv

bench_accum_sumpool:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench accum sumpool
run: cargo bench --verbose --bench accum_sumpool

bench_pairwise_add:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench pairwise add
run: cargo bench --verbose --bench pairwise_add

bench_accum_sum:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench accum sum
run: cargo bench --verbose --bench accum_sum

bench_pairwise_pow:
runs-on: self-hosted
needs: [bench_poseidon]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-06-27
override: true
components: rustfmt, clippy
- name: Bench pairwise pow
run: cargo bench --verbose --bench pairwise_pow
- name: Bench accum pack
run: cargo bench --verbose --bench accum_pack


5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ harness = false
name = "pairwise_pow"
harness = false

[[bench]]
name = "poseidon"
harness = false

[[bench]]
name = "accum_pack"
name = "elgamal"
harness = false


Expand Down
117 changes: 0 additions & 117 deletions benches/accum_pack.rs

This file was deleted.

Loading

0 comments on commit 1fdfd96

Please sign in to comment.