From 962e8d553e86cc98d0307fa8815be139b45a4070 Mon Sep 17 00:00:00 2001 From: anupsv Date: Thu, 29 Aug 2024 16:39:42 -0700 Subject: [PATCH] formatting --- benches/bench_kzg_commit_large_blobs.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/benches/bench_kzg_commit_large_blobs.rs b/benches/bench_kzg_commit_large_blobs.rs index 65407fb..2bc143a 100644 --- a/benches/bench_kzg_commit_large_blobs.rs +++ b/benches/bench_kzg_commit_large_blobs.rs @@ -15,7 +15,9 @@ fn bench_kzg_commit(c: &mut Criterion) { .unwrap(); c.bench_function("bench_kzg_commit_8mb", |b| { - let random_blob: Vec = (0..8000000).map(|_| rng.gen_range(32..=126) as u8).collect(); + let random_blob: Vec = (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) @@ -26,7 +28,9 @@ fn bench_kzg_commit(c: &mut Criterion) { }); c.bench_function("bench_kzg_commit_16mb", |b| { - let random_blob: Vec = (0..16_252_000).map(|_| rng.gen_range(32..=126) as u8).collect(); + let random_blob: Vec = (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) @@ -35,7 +39,6 @@ fn bench_kzg_commit(c: &mut Criterion) { .unwrap(); b.iter(|| kzg.commit(&input_poly).unwrap()); }); - } fn criterion_config() -> Criterion {