minor changes

This commit is contained in:
Manish Kumar 2024-01-11 20:27:58 +05:30
parent 8e0eaa92fb
commit e38c4cf72a
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -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