Skip to content

Commit 3bfbbc5

Browse files
committed
update inputs
1 parent 24da570 commit 3bfbbc5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ere/miden/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use std::collections::HashMap;
44
use std::path::Path;
55
use std::time::Instant;
66
use utils::bench::{Metrics, benchmark};
7+
use utils::metadata::SHA2_INPUTS;
78
use zkvm_interface::{Compiler, InputItem, ProverResourceType, zkVM};
8-
9-
const INPUT_SIZES: [usize; 5] = [256, 512, 1024, 2048, 4096];
109
const CSV_OUTPUT: &str = "miden_sha256.csv";
1110

1211
/// Miden SHA-256 benchmark harness.
@@ -66,10 +65,10 @@ impl Sha256Benchmark {
6665

6766
/// Runs the Miden SHA-256 benchmark for all input sizes and saves results to a CSV file.
6867
pub fn bench_sha256() {
69-
let bench_harness = Sha256Benchmark::new(&INPUT_SIZES);
68+
let bench_harness = Sha256Benchmark::new(&SHA2_INPUTS);
7069
benchmark(
7170
|size| bench_harness.run(size),
72-
INPUT_SIZES.as_slice(),
71+
SHA2_INPUTS.as_slice(),
7372
CSV_OUTPUT,
7473
);
7574
}

ere/risc0/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use std::collections::HashMap;
44
use std::path::Path;
55
use std::time::Instant;
66
use utils::bench::{Metrics, benchmark};
7+
use utils::metadata::SHA2_INPUTS;
78
use zkvm_interface::{Compiler, Input, ProverResourceType, zkVM};
8-
9-
const INPUT_SIZES: [usize; 5] = [256, 512, 1024, 2048, 4096];
109
const CSV_OUTPUT: &str = "risc0_sha256.csv";
1110

1211
/// Risc0 SHA-256 benchmark.
@@ -66,10 +65,10 @@ impl Sha256Benchmark {
6665

6766
/// Runs the Risc0 SHA-256 benchmark for all input sizes and saves results to a CSV file.
6867
pub fn bench_sha256() {
69-
let bench_harness = Sha256Benchmark::new(&INPUT_SIZES);
68+
let bench_harness = Sha256Benchmark::new(&SHA2_INPUTS);
7069
benchmark(
7170
|size| bench_harness.run(size),
72-
INPUT_SIZES.as_slice(),
71+
SHA2_INPUTS.as_slice(),
7372
CSV_OUTPUT,
7473
);
7574
}

0 commit comments

Comments
 (0)