You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
747 B

  1. MIN_NUM_VARIABLES=$1
  2. MAX_NUM_VARIABLES=$2
  3. MAX_NUM_CONSTRAINTS=$3
  4. for i in `seq 10 19`; do wget https://hermez.s3-eu-west-1.amazonaws.com/powersOfTau28_hez_final_$i.ptau; done
  5. ./prepare.sh $MIN_NUM_VARIABLES $MAX_NUM_VARIABLES $MAX_NUM_CONSTRAINTS
  6. for i in `seq $MIN_NUM_VARIABLES $MAX_NUM_VARIABLES`
  7. do
  8. for j in `seq $i $MAX_NUM_CONSTRAINTS`
  9. do
  10. NUM_VARIABLES=$(echo 10^$i | bc)
  11. NUM_CONSTRAINTS=$(echo 10^$j | bc)
  12. echo "**** START benchmarking $NUM_VARIABLES $NUM_CONSTRAINTS ****"
  13. ./prove.sh $NUM_VARIABLES $NUM_CONSTRAINTS
  14. perf stat -r5 rapidsnark complex-circuit-$NUM_VARIABLES-$NUM_CONSTRAINTS.zkey witness.wtns proof.json public.json
  15. echo "**** END benchmarking $NUM_VARIABLES $NUM_CONSTRAINTS ****"
  16. done
  17. done