Skip to content

Commit

Permalink
Use mocked proofs in the perf.
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyzdanovich committed Dec 24, 2024
1 parent c6e61f7 commit 2b68a85
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
with:
persist-credentials: false

- name: Run Evaluation
- name: Run performance evaluation
run: |
cargo run --profile prover-ci -- \
--post-to-gh \
Expand Down
4 changes: 2 additions & 2 deletions provers/perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ version = "0.1.0"

[dependencies]
strata-risc0-adapter = {workspace = true, features = ["prover"] }
strata-sp1-adapter = {workspace = true, features = ["prover"] }
strata-sp1-adapter = {workspace = true, features = ["prover", "mock"] }
strata-sp1-guest-builder = { path = "../sp1/", features = ["prover"] }
strata-test-utils.workspace = true
strata-zkvm.workspace = true
strata-zkvm-tests = { path = "../tests/", features = ["sp1"] }
strata-zkvm-tests = { path = "../tests/", features = ["sp1", "mock"] }

sp1-prover = "3.0.0"
sp1-sdk = "3.0.0"
Expand Down
58 changes: 29 additions & 29 deletions provers/perf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,35 +149,35 @@ fn run_generator_programs<H: ZkVmHostPerf>(

reports.push(cl_block_report.into());

//// l1_batch
//println!("Generating a report for L1_BATCH");
//let l1_batch = generator.l1_batch();
//let l1_batch_report = l1_batch
// .gen_proof_report(&(l1_start_height, l1_end_height), "L1_BATCH".to_owned())
// .unwrap();
//
//reports.push(l1_batch_report.into());
//
//// l2_block
//println!("Generating a report for L2_BATCH");
//let l2_block = generator.l2_batch();
//let l2_block_report = l2_block
// .gen_proof_report(&(l2_start_height, l2_end_height), "L2_BATCH".to_owned())
// .unwrap();
//
//reports.push(l2_block_report.into());
//
//// checkpoint
//println!("Generating a report for CHECKPOINT");
//let checkpoint = generator.checkpoint();
//let checkpoint_test_input = CheckpointBatchInfo {
// l1_range: (l1_start_height.into(), l1_end_height.into()),
// l2_range: (l2_start_height, l2_end_height),
//};
//let checkpoint_report = checkpoint.gen_proof_report(&checkpoint_test_input,
// "CHECKPOINT".to_owned()).unwrap();

//reports.push(checkpoint_report.into());
// l1_batch
println!("Generating a report for L1_BATCH");
let l1_batch = generator.l1_batch();
let l1_batch_report = l1_batch
.gen_proof_report(&(l1_start_height, l1_end_height), "L1_BATCH".to_owned())
.unwrap();

reports.push(l1_batch_report.into());

// l2_block
println!("Generating a report for L2_BATCH");
let l2_block = generator.l2_batch();
let l2_block_report = l2_block
.gen_proof_report(&(l2_start_height, l2_end_height), "L2_BATCH".to_owned())
.unwrap();

reports.push(l2_block_report.into());

// checkpoint
println!("Generating a report for CHECKPOINT");
let checkpoint = generator.checkpoint();
let checkpoint_test_input = CheckpointBatchInfo {
l1_range: (l1_start_height.into(), l1_end_height.into()),
l2_range: (l2_start_height, l2_end_height),
};
let checkpoint_report = checkpoint
.gen_proof_report(&checkpoint_test_input, "CHECKPOINT".to_owned())
.unwrap();
reports.push(checkpoint_report.into());

reports
}
Expand Down

0 comments on commit 2b68a85

Please sign in to comment.