Home
last modified time | relevance | path

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

/external/rust/crates/criterion/benches/benchmarks/
Dcompare_functions.rs51 group.bench_with_input(BenchmarkId::new("Recursive", i), &i, |b, i| { in compare_fibonaccis_group()
54 group.bench_with_input(BenchmarkId::new("Iterative", i), &i, |b, i| { in compare_fibonaccis_group()
Dwith_inputs.rs11 group.bench_with_input(BenchmarkId::from_parameter(size), size, |b, &size| { in from_elem()
/external/rust/crates/chrono/benches/
Dchrono.rs96 group.bench_with_input(BenchmarkId::new("new", year), &d, |b, y| { in bench_num_days_from_ce()
99 group.bench_with_input(BenchmarkId::new("classic", year), &d, |b, y| { in bench_num_days_from_ce()
/external/rust/crates/criterion/tests/
Dcriterion_tests.rs474 group.bench_with_input(BenchmarkId::new("Test 1", x), &x, |b, i| b.iter(|| i)); in test_benchmark_group_with_input()
475 group.bench_with_input(BenchmarkId::new("Test 2", x), &x, |b, i| b.iter(|| i)); in test_benchmark_group_with_input()
/external/rust/crates/criterion/src/
Dbenchmark_group.rs259 pub fn bench_with_input<ID: IntoBenchmarkId, F, I>( in bench_with_input() method
Dlib.rs1168 pub fn bench_with_input<F, I>(&mut self, id: BenchmarkId, input: &I, f: F) -> &mut Criterion<M> in bench_with_input() function
1181 self.benchmark_group(group_name).bench_with_input( in bench_with_input()