From c83638dd3ae232f9074f3f84a07cfb011eb09c75 Mon Sep 17 00:00:00 2001 From: danielsanchezq Date: Fri, 14 Jun 2024 15:04:16 +0200 Subject: [PATCH] Fix bench --- nomos-da/kzgrs/benches/fft.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomos-da/kzgrs/benches/fft.rs b/nomos-da/kzgrs/benches/fft.rs index 549f6f2a..fd7f4f9d 100644 --- a/nomos-da/kzgrs/benches/fft.rs +++ b/nomos-da/kzgrs/benches/fft.rs @@ -25,7 +25,7 @@ fn compute_fft_for_size(bencher: Bencher, size: usize) { .collect(); (buff, roots_of_unity) }) - .input_counter(|_| ItemsCount::new(size)) + .input_counter(move |_| ItemsCount::new(size)) .bench_refs(|(buff, roots_of_unity)| black_box(fft_g1(buff, roots_of_unity))); } @@ -47,6 +47,6 @@ fn compute_ifft_for_size(bencher: Bencher, size: usize) { let buff = fft_g1(&buff, &roots_of_unity); (buff, roots_of_unity) }) - .input_counter(|_| ItemsCount::new(size)) + .input_counter(move |_| ItemsCount::new(size)) .bench_refs(|(buff, roots_of_unity)| black_box(ifft_g1(buff, roots_of_unity))); }