Skip to main content

benchmark_threshold

Function benchmark_threshold 

Source
pub fn benchmark_threshold<F>(element_cost: F) -> usize
where F: Fn(usize) -> f64 + Sync + Send,
Expand description

Benchmark to determine the optimal threshold for the current hardware

§Arguments

  • element_cost - A function that simulates the cost of processing a single element

§Returns

The optimal threshold determined by benchmarking