Function bench_env_limit_ref

Source
pub fn bench_env_limit_ref<F, I, O>(time_limit_secs: f64, env: I, f: F) -> Stats
where F: Fn(&mut I) -> O, I: Clone,
Expand description

Run a benchmark with an environment, specifying the run time limit. The function to bench takes a mutable reference to the env parameter instead of a struct.

See bench_env