Fix bench

This commit is contained in:
danielsanchezq 2024-06-14 15:04:16 +02:00
parent a760e436ed
commit c83638dd3a
1 changed files with 2 additions and 2 deletions

View File

@ -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)));
}