Function scaling::bench_scaling[][src]

pub fn bench_scaling<F, O>(f: F, nmin: usize) -> ScalingStats where
    F: Fn(usize) -> O, 

Benchmark the power-law scaling of the function

This function assumes that the function scales as 𝑶(𝑁ᴾ𝐸ᴺ). It conisders higher powers for faster functions, and tries to keep the measuring time around 10s. It measures the power ᴾ and exponential base 𝐸 based on n R² goodness of fit parameter.