From e38c4cf72a5d3c93a109970aae970e4ee819083c Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Thu, 11 Jan 2024 20:27:58 +0530 Subject: [PATCH] minor changes --- hash/risc0/bench/README.md | 2 +- hash/risc0/bench/build.sh | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/hash/risc0/bench/README.md b/hash/risc0/bench/README.md index 936cb1a..d0bf8ae 100644 --- a/hash/risc0/bench/README.md +++ b/hash/risc0/bench/README.md @@ -3,7 +3,7 @@ Benchmarking different hashes inside risc'0 zkvm The benchmark is defined by the following shell scripts: -- `build.sh` - build the code. you can set the number of threads by setting the environment variable `CARGO_BUILD_JOBS` otherwise the code will build using default number of threads. +- `build.sh` - build the code. - `run.sh` and `run2.sh` - run the benchmark itself (`run.sh` for sha256, keccak, blake2b, blake3 and `run2.sh` for poseidon2 over bn128 and babybear) diff --git a/hash/risc0/bench/build.sh b/hash/risc0/bench/build.sh index d1cf927..0dfa161 100755 --- a/hash/risc0/bench/build.sh +++ b/hash/risc0/bench/build.sh @@ -1,7 +1,3 @@ #!/bin/bash -if [ -z ${ZKBENCH_NTHREADS} ]; then -ZKBENCH_NTHREADS="default" # https://doc.rust-lang.org/cargo/reference/config.html#buildjobs -fi - -CARGO_BUILD_JOBS=$ZKBENCH_NTHREADS cargo build --release + cargo build --release