Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Aug 29, 2024
1 parent bc283f2 commit 962e8d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions benches/bench_kzg_commit_large_blobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ fn bench_kzg_commit(c: &mut Criterion) {
.unwrap();

c.bench_function("bench_kzg_commit_8mb", |b| {
let random_blob: Vec<u8> = (0..8000000).map(|_| rng.gen_range(32..=126) as u8).collect();
let random_blob: Vec<u8> = (0..8000000)
.map(|_| rng.gen_range(32..=126) as u8)
.collect();
let input = Blob::from_bytes_and_pad(&random_blob);
let input_poly = input
.to_polynomial(PolynomialFormat::InCoefficientForm)
Expand All @@ -26,7 +28,9 @@ fn bench_kzg_commit(c: &mut Criterion) {
});

c.bench_function("bench_kzg_commit_16mb", |b| {
let random_blob: Vec<u8> = (0..16_252_000).map(|_| rng.gen_range(32..=126) as u8).collect();
let random_blob: Vec<u8> = (0..16_252_000)
.map(|_| rng.gen_range(32..=126) as u8)
.collect();
let input = Blob::from_bytes_and_pad(&random_blob);
let input_poly = input
.to_polynomial(PolynomialFormat::InCoefficientForm)
Expand All @@ -35,7 +39,6 @@ fn bench_kzg_commit(c: &mut Criterion) {
.unwrap();
b.iter(|| kzg.commit(&input_poly).unwrap());
});

}

fn criterion_config() -> Criterion {
Expand Down

0 comments on commit 962e8d5

Please sign in to comment.