Skip to content

Commit

Permalink
chore: remove action
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Mar 25, 2024
1 parent 4a447a1 commit b2c0e63
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ concurrency:
cancel-in-progress: true

jobs:
run-benchmark:
name: Run benchmarks
execute:
name: Run execution benchmarks
runs-on: ubuntu-22.04
timeout-minutes: 30

Expand All @@ -23,7 +23,32 @@ jobs:
with:
key: benchmarks

- uses: boa-dev/[email protected]
- run: cargo bench execute

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: execution-benchmarks
path: ./target/criterion
retention-days: 10

prove:
name: Run proving benchmarks
runs-on: ubuntu-22.04
timeout-minutes: 60

steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2
with:
key: benchmarks

- run: cargo bench prove

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
branchName: "master"
benchName: "execution"
name: proving-benchmarks
path: ./target/criterion
retention-days: 10
2 changes: 1 addition & 1 deletion tooling/nargo_cli/benches/proof_generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ criterion_command!(prove, "prove");
criterion_group! {
name = prove_benches;
config = Criterion::default().sample_size(20).measurement_time(Duration::from_secs(20)).with_profiler(PProfProfiler::new(100, Output::Flamegraph(None)));
targets = criterion_selected_tests_execution
targets = criterion_selected_tests_prove
}
criterion_main!(prove_benches);

0 comments on commit b2c0e63

Please sign in to comment.