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