print proving time for sha_nullifier_test

This commit is contained in:
Sergio Chouhy 2025-08-01 10:42:14 -03:00
parent 699db757c2
commit dbfb47fb8d
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ use methods::{
GUEST_NULLIFIER_TEST_ELF, GUEST_NULLIFIER_TEST_ID
};
use risc0_zkvm::{default_prover, ExecutorEnv};
use std::time::Instant;
fn main() {
// Initialize tracing. In order to view logs, run `RUST_LOG=info cargo run`
@ -34,11 +35,13 @@ fn main() {
// Obtain the default prover.
let prover = default_prover();
let now = Instant::now();
// Proof information by proving the specified ELF binary.
// This struct contains the receipt along with statistics about execution of the guest
let prove_info = prover
.prove(env, GUEST_NULLIFIER_TEST_ELF)
.unwrap();
println!("Proving time: {:?}", now.elapsed());
// extract the receipt.
let receipt = prove_info.receipt;

0
risc0/sha_nullifier_test/test_proof.sh Normal file → Executable file
View File