Skip to content

Commit

Permalink
add bench compile to github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucube committed Nov 25, 2024
1 parent 3e6db17 commit 121b2eb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,22 @@ jobs:
- name: Run examples
run: cargo run --release --example 2>&1 | grep -E '^ ' | xargs -n1 cargo run --release --example

# run the benchmarks with the flag `--no-run` to ensure that they compile,
# but without executing them.
bench:
if: github.event.pull_request.draft == false
name: Bench compile
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: bench
args: --no-run

fmt:
if: github.event.pull_request.draft == false
name: Rustfmt
Expand Down
5 changes: 1 addition & 4 deletions benches/nova.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use criterion::*;
use pprof::{
criterion::{Output, PProfProfiler},
flamegraph::Options,
};
use pprof::criterion::{Output, PProfProfiler};

use ark_bn254::{constraints::GVar as bn_GVar, Fr as bn_Fr, G1Projective as bn_G};
use ark_grumpkin::{constraints::GVar as grumpkin_GVar, Projective as grumpkin_G};
Expand Down

0 comments on commit 121b2eb

Please sign in to comment.