kroma-network / tachyon

Modular ZK(Zero Knowledge) backend accelerated by GPU
MIT License
7.77k stars 231 forks source link

feat(circom): introduce `-n` flag for specifying number of proof generation #452

Closed whoisgautxm closed 3 months ago

whoisgautxm commented 3 months ago

Add benchmarking functionality to prover_main.cc:

-Introduce '-n' flag for specifying number of proof generation runs -Implement loop for multiple proof generations -Calculate and display average and maximum execution times -Add per-run timing measurements -These changes enable performance analysis across multiple iterations.

batzor commented 3 months ago

@whoisgautxm It seems like it doesn't build.

prover_main.cc:174:38: error: invalid operands to binary expression ('base::TimeDelta' and 'base::TimeTicks')
    base::TimeDelta time_taken = end - start;
whoisgautxm commented 3 months ago

@whoisgautxm It seems like it doesn't build.

prover_main.cc:174:38: error: invalid operands to binary expression ('base::TimeDelta' and 'base::TimeTicks')
    base::TimeDelta time_taken = end - start;

But in my PC it is working fine what could be the issue

batzor commented 3 months ago

You should test circom like this.

  cd vendors/circom
  CARGO_BAZEL_REPIN=true bazel test --config macos_arm64 --test_output=errors //...