[−][src]Function zkp_criterion_utils::log_size_bench
pub fn log_size_bench<F>(
crit: &mut Criterion,
id: &str,
sizes: &'static [usize],
f: F
) where
F: FnMut(&mut Bencher, usize) + 'static,
Benchmark over a size parameter.
Produces a log-log plot.
ⓘThis example is not tested
const SIZES: [usize; 6] = [64, 256, 1024, 4096, 16384, 65536]; log_size_bench(crit, "FFT size", &SIZES, move |bench, size| { let leaves: Vec<_> = (0..size).map(FieldElement::from).collect(); bench.iter(|| { black_box(fft_bit_reversed( black_box(&leaves), )) }) });