mirror of
https://github.com/logos-blockchain/lssa-zkvm-testing.git
synced 2026-05-05 09:03:06 +00:00
print proving time for sha_nullifier_test
This commit is contained in:
parent
699db757c2
commit
dbfb47fb8d
@ -4,6 +4,7 @@ use methods::{
|
|||||||
GUEST_NULLIFIER_TEST_ELF, GUEST_NULLIFIER_TEST_ID
|
GUEST_NULLIFIER_TEST_ELF, GUEST_NULLIFIER_TEST_ID
|
||||||
};
|
};
|
||||||
use risc0_zkvm::{default_prover, ExecutorEnv};
|
use risc0_zkvm::{default_prover, ExecutorEnv};
|
||||||
|
use std::time::Instant;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Initialize tracing. In order to view logs, run `RUST_LOG=info cargo run`
|
// Initialize tracing. In order to view logs, run `RUST_LOG=info cargo run`
|
||||||
@ -34,11 +35,13 @@ fn main() {
|
|||||||
// Obtain the default prover.
|
// Obtain the default prover.
|
||||||
let prover = default_prover();
|
let prover = default_prover();
|
||||||
|
|
||||||
|
let now = Instant::now();
|
||||||
// Proof information by proving the specified ELF binary.
|
// Proof information by proving the specified ELF binary.
|
||||||
// This struct contains the receipt along with statistics about execution of the guest
|
// This struct contains the receipt along with statistics about execution of the guest
|
||||||
let prove_info = prover
|
let prove_info = prover
|
||||||
.prove(env, GUEST_NULLIFIER_TEST_ELF)
|
.prove(env, GUEST_NULLIFIER_TEST_ELF)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
println!("Proving time: {:?}", now.elapsed());
|
||||||
|
|
||||||
// extract the receipt.
|
// extract the receipt.
|
||||||
let receipt = prove_info.receipt;
|
let receipt = prove_info.receipt;
|
||||||
|
|||||||
0
risc0/sha_nullifier_test/test_proof.sh
Normal file → Executable file
0
risc0/sha_nullifier_test/test_proof.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user