Skip to content

Commit 13a2062

Browse files
authored
measure time of proof/validate execution (#21)
1 parent 1d90588 commit 13a2062

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ jobs:
6262
run: |
6363
set -x
6464
set -e
65-
package/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
66-
package/bin/verifier testdata/verification_key.json public.json proof.json
65+
time package/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
66+
time package/bin/verifier testdata/verification_key.json public.json proof.json
6767
# make a wrong public.json by decrementing the first element by 1
6868
(value_0=$(jq '.[0]' public.json | tr -d '"') && value_0=$(echo "$value_0 - 1" | BC_LINE_LENGTH=100 bc) && jq --arg value_0 "$value_0" '.[0] = $value_0' public.json) > public_bad.json
6969
set +e
70-
package/bin/verifier testdata/verification_key.json public_bad.json proof.json
70+
time package/bin/verifier testdata/verification_key.json public_bad.json proof.json
7171
exit_code=$?
7272
set -e
7373
[ $exit_code -ne 0 ]
@@ -174,12 +174,12 @@ jobs:
174174
run: |
175175
set -x
176176
set -e
177-
package_macos_arm64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
178-
package_macos_arm64/bin/verifier testdata/verification_key.json public.json proof.json
177+
time package_macos_arm64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
178+
time package_macos_arm64/bin/verifier testdata/verification_key.json public.json proof.json
179179
# make a wrong public.json by decrementing the first element by 1
180180
(value_0=$(jq '.[0]' public.json | tr -d '"') && value_0=$(echo "$value_0 - 1" | BC_LINE_LENGTH=100 bc) && jq --arg value_0 "$value_0" '.[0] = $value_0' public.json) > public_bad.json
181181
set +e
182-
package_macos_arm64/bin/verifier testdata/verification_key.json public_bad.json proof.json
182+
time package_macos_arm64/bin/verifier testdata/verification_key.json public_bad.json proof.json
183183
exit_code=$?
184184
set -e
185185
[ $exit_code -ne 0 ]
@@ -276,12 +276,12 @@ jobs:
276276
run: |
277277
set -x
278278
set -e
279-
package_macos_x86_64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
280-
package_macos_x86_64/bin/verifier testdata/verification_key.json public.json proof.json
279+
time package_macos_x86_64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
280+
time package_macos_x86_64/bin/verifier testdata/verification_key.json public.json proof.json
281281
# make a wrong public.json by decrementing the first element by 1
282282
(value_0=$(jq '.[0]' public.json | tr -d '"') && value_0=$(echo "$value_0 - 1" | BC_LINE_LENGTH=100 bc) && jq --arg value_0 "$value_0" '.[0] = $value_0' public.json) > public_bad.json
283283
set +e
284-
package_macos_x86_64/bin/verifier testdata/verification_key.json public_bad.json proof.json
284+
time package_macos_x86_64/bin/verifier testdata/verification_key.json public_bad.json proof.json
285285
exit_code=$?
286286
set -e
287287
[ $exit_code -ne 0 ]

0 commit comments

Comments
 (0)