Home
last modified time | relevance | path

Searched refs:iter_batched_ref (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/criterion/benches/benchmarks/
Dmeasurement_overhead.rs21 b.iter_batched_ref(|| (), |_| 1, BatchSize::SmallInput) in some_benchmark()
24 b.iter_batched_ref(|| (), |_| 1, BatchSize::LargeInput) in some_benchmark()
27 b.iter_batched_ref(|| (), |_| 1, BatchSize::PerIteration) in some_benchmark()
Dasync_measurement_overhead.rs32 .iter_batched_ref(|| (), |_| async { 1 }, BatchSize::SmallInput) in some_benchmark()
36 .iter_batched_ref(|| (), |_| async { 1 }, BatchSize::LargeInput) in some_benchmark()
39 b.to_async(FuturesExecutor).iter_batched_ref( in some_benchmark()
/external/rust/crates/criterion/tests/
Dcriterion_tests.rs319 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::SmallInput) in test_timing_loops()
322 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::LargeInput) in test_timing_loops()
325 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::PerIteration) in test_timing_loops()
328 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::NumBatches(1)) in test_timing_loops()
331 b.iter_batched_ref(|| vec![10], |v| v[0], BatchSize::NumIterations(10)) in test_timing_loops()
/external/rust/crates/thread_local/benches/
Dthread_local.rs20 b.iter_batched_ref( in main()
/external/rust/crates/criterion/src/
Dbencher.rs335 pub fn iter_batched_ref<I, O, S, R>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched_ref() method
721 pub fn iter_batched_ref<I, O, S, R, F>(&mut self, mut setup: S, mut routine: R, size: BatchSize) in iter_batched_ref() method
/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