mirror of
https://github.com/logos-storage/zk-benchmarks.git
synced 2026-01-04 06:43:09 +00:00
15 lines
416 B
Bash
Executable File
15 lines
416 B
Bash
Executable File
#!/bin/bash
|
|
if [ -z ${ZKBENCH_HASH_TYPE} ]; then
|
|
ZKBENCH_HASH_TYPE="sha256"
|
|
fi
|
|
|
|
if [ -z ${ZKBENCH_INPUT_SIZE_BYTES} ]; then
|
|
ZKBENCH_INPUT_SIZE_BYTES=1024
|
|
fi
|
|
|
|
echo "Running benchmarks with the following configurations:"
|
|
echo "HASH = $ZKBENCH_HASH_TYPE"
|
|
echo "Input Size (Bytes) = $ZKBENCH_INPUT_SIZE_BYTES"
|
|
|
|
# Run the benchmarks
|
|
./target/release/benchmark $ZKBENCH_HASH_TYPE $ZKBENCH_INPUT_SIZE_BYTES |