Home
last modified time | relevance | path

Searched refs:iter_batched (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/criterion/benches/benchmarks/
Dmeasurement_overhead.rs12 b.iter_batched(|| (), |_| 1, BatchSize::SmallInput) in some_benchmark()
15 b.iter_batched(|| (), |_| 1, BatchSize::LargeInput) in some_benchmark()
18 b.iter_batched(|| (), |_| 1, BatchSize::PerIteration) in some_benchmark()
Dasync_measurement_overhead.rs20 .iter_batched(|| (), |_| async { 1 }, BatchSize::SmallInput) in some_benchmark()
24 .iter_batched(|| (), |_| async { 1 }, BatchSize::LargeInput) in some_benchmark()
28 .iter_batched(|| (), |_| async { 1 }, BatchSize::PerIteration) in some_benchmark()
/external/rust/crates/criterion/src/
Dbencher.rs147 self.iter_batched(setup, routine, BatchSize::PerIteration); in iter_with_setup()
189 self.iter_batched(|| (), |_| routine(), BatchSize::SmallInput); in iter_with_large_drop()
198 self.iter_batched(setup, routine, BatchSize::NumBatches(1)); in iter_with_large_setup()
245 pub fn iter_batched<I, O, S, R>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched() method
521 self.iter_batched(setup, routine, BatchSize::PerIteration); in iter_with_setup()
565 self.iter_batched(|| (), |_| routine(), BatchSize::SmallInput); in iter_with_large_drop()
575 self.iter_batched(setup, routine, BatchSize::NumBatches(1)); in iter_with_large_setup()
623 pub fn iter_batched<I, O, S, R, F>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched() method
/external/rust/crates/criterion/tests/
Dcriterion_tests.rs304 b.iter_batched(|| vec![10], |v| v[0], BatchSize::SmallInput) in test_timing_loops()
307 b.iter_batched(|| vec![10], |v| v[0], BatchSize::LargeInput) in test_timing_loops()
310 b.iter_batched(|| vec![10], |v| v[0], BatchSize::PerIteration) in test_timing_loops()
313 b.iter_batched(|| vec![10], |v| v[0], BatchSize::NumBatches(1)) in test_timing_loops()
316 b.iter_batched(|| vec![10], |v| v[0], BatchSize::NumIterations(10)) in test_timing_loops()
/external/rust/crates/criterion/
DCHANGELOG.md151 - Reduced timing overhead of `Criterion::iter_batched/iter_batched_ref`.
155 - Added `iter_batched/iter_batched_ref` timing loops, which allow for setup (like
160 - `iter_with_setup/iter_with_large_setup` are now deprecated in favor of `iter_batched`.