From 91dc057c68bdbe342fda81586d0c8fb83af1b5ae Mon Sep 17 00:00:00 2001 From: "alon.dotan" Date: Wed, 15 Jan 2025 12:46:49 +0200 Subject: [PATCH] chore: debug --- .github/workflows/ci.yaml | 10 +++++-- crates/prover/Cargo.toml | 60 +++++++++++++++++++-------------------- scripts/bench.sh | 2 +- 3 files changed, 39 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 19be7da09..058c2e7b9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -118,7 +118,11 @@ jobs: with: toolchain: nightly-2025-01-02 - name: Run benchmark - run: ./scripts/bench.sh | tee output.txt + run: | + sudo apt update && sudo apt install -y gnuplot + ./scripts/bench.sh | tee output.txt + pwd + ls -l - name: Download previous benchmark data uses: actions/cache@v4 @@ -146,7 +150,9 @@ jobs: with: toolchain: nightly-2025-01-02 - name: Run benchmark - run: ./scripts/bench.sh --features="parallel" | tee output.txt + run: | + apt update && apt install -y gnuplot + ./scripts/bench.sh --features="parallel" | tee output.txt - name: Download previous benchmark data uses: actions/cache@v4 with: diff --git a/crates/prover/Cargo.toml b/crates/prover/Cargo.toml index 03e99ae28..20d9aef56 100644 --- a/crates/prover/Cargo.toml +++ b/crates/prover/Cargo.toml @@ -66,42 +66,42 @@ name = "bit_rev" harness = false name = "eval_at_point" -[[bench]] -harness = false -name = "fft" +# [[bench]] +# harness = false +# name = "fft" -[[bench]] -harness = false -name = "field" +# [[bench]] +# harness = false +# name = "field" -[[bench]] -harness = false -name = "fri" +# [[bench]] +# harness = false +# name = "fri" -[[bench]] -harness = false -name = "lookups" +# [[bench]] +# harness = false +# name = "lookups" -[[bench]] -harness = false -name = "matrix" +# [[bench]] +# harness = false +# name = "matrix" -[[bench]] -harness = false -name = "merkle" +# [[bench]] +# harness = false +# name = "merkle" -[[bench]] -harness = false -name = "poseidon" +# [[bench]] +# harness = false +# name = "poseidon" -[[bench]] -harness = false -name = "prefix_sum" +# [[bench]] +# harness = false +# name = "prefix_sum" -[[bench]] -harness = false -name = "quotients" +# [[bench]] +# harness = false +# name = "quotients" -[[bench]] -harness = false -name = "pcs" +# [[bench]] +# harness = false +# name = "pcs" diff --git a/scripts/bench.sh b/scripts/bench.sh index 416cfb36d..0dfc6b9dc 100755 --- a/scripts/bench.sh +++ b/scripts/bench.sh @@ -2,4 +2,4 @@ # Can be used as a drop in replacement for `cargo bench`. # For example, `./scripts/bench.sh` will run all benchmarks. # or `./scripts/bench.sh M31` will run only the M31 benchmarks. -RUSTFLAGS="-Awarnings -C target-cpu=native -C target-feature=+avx512f -C opt-level=3" cargo bench $@ +RUSTFLAGS="-Awarnings -C target-cpu=native -C opt-level=3" cargo bench $@