Home
last modified time | relevance | path

Searched refs:bench_function (Results 1 – 25 of 28) sorted by relevance

12

/external/rust/crates/criterion/benches/benchmarks/
Dmeasurement_overhead.rs5 group.bench_function("iter", |b| b.iter(|| 1)); in some_benchmark()
6 group.bench_function("iter_with_setup", |b| b.iter_with_setup(|| (), |_| 1)); in some_benchmark()
7 group.bench_function("iter_with_large_setup", |b| { in some_benchmark()
10 group.bench_function("iter_with_large_drop", |b| b.iter_with_large_drop(|| 1)); in some_benchmark()
11 group.bench_function("iter_batched_small_input", |b| { in some_benchmark()
14 group.bench_function("iter_batched_large_input", |b| { in some_benchmark()
17 group.bench_function("iter_batched_per_iteration", |b| { in some_benchmark()
20 group.bench_function("iter_batched_ref_small_input", |b| { in some_benchmark()
23 group.bench_function("iter_batched_ref_large_input", |b| { in some_benchmark()
26 group.bench_function("iter_batched_ref_per_iteration", |b| { in some_benchmark()
Dasync_measurement_overhead.rs5 group.bench_function("iter", |b| b.to_async(FuturesExecutor).iter(|| async { 1 })); in some_benchmark()
6 group.bench_function("iter_with_setup", |b| { in some_benchmark()
10 group.bench_function("iter_with_large_setup", |b| { in some_benchmark()
14 group.bench_function("iter_with_large_drop", |b| { in some_benchmark()
18 group.bench_function("iter_batched_small_input", |b| { in some_benchmark()
22 group.bench_function("iter_batched_large_input", |b| { in some_benchmark()
26 group.bench_function("iter_batched_per_iteration", |b| { in some_benchmark()
30 group.bench_function("iter_batched_ref_small_input", |b| { in some_benchmark()
34 group.bench_function("iter_batched_ref_large_input", |b| { in some_benchmark()
38 group.bench_function("iter_batched_ref_per_iteration", |b| { in some_benchmark()
Dsampling_mode.rs9 group.bench_function("Auto", |bencher| { in sampling_mode_tests()
14 group.bench_function("Linear", |bencher| { in sampling_mode_tests()
19 group.bench_function("Flat", |bencher| { in sampling_mode_tests()
Dspecial_characters.rs5 group.bench_function("\"*benchmark/\" '", |b| b.iter(|| 1 + 1)); in some_benchmark()
Diter_with_setup.rs6 c.bench_function("iter_with_setup", |b| { in setup()
Dexternal_process.rs40 c.bench_function("fibonacci-python", |b| { in python_fibonacci()
Dcustom_measurement.rs105 criterion.bench_function("fibonacci_custom_measurement", |bencher| { in fibonacci_cycles()
/external/rust/crates/itertools/benches/
Dbench1.rs17 c.bench_function("slice iter", move |b| { in slice_iter()
27 c.bench_function("slice iter rev", move |b| { in slice_iter_rev()
40 c.bench_function("zip default zip", move |b| { in zip_default_zip()
56 c.bench_function("zipdot i32 default zip", move |b| { in zipdot_i32_default_zip()
73 c.bench_function("zipdot f32 default zip", move |b| { in zipdot_f32_default_zip()
92 c.bench_function("zip default zip3", move |b| { in zip_default_zip3()
107 c.bench_function("zip slices ziptuple", move |b| { in zip_slices_ziptuple()
125 c.bench_function("zipslices", move |b| { in zipslices()
141 c.bench_function("zipslices mut", move |b| { in zipslices_mut()
157 c.bench_function("zipdot i32 zipslices", move |b| { in zipdot_i32_zipslices()
[all …]
Dcombinations.rs12 c.bench_function("comb for1", move |b| { in comb_for1()
22 c.bench_function("comb for2", move |b| { in comb_for2()
34 c.bench_function("comb for3", move |b| { in comb_for3()
48 c.bench_function("comb for4", move |b| { in comb_for4()
64 c.bench_function("comb c1", move |b| { in comb_c1()
74 c.bench_function("comb c2", move |b| { in comb_c2()
84 c.bench_function("comb c3", move |b| { in comb_c3()
94 c.bench_function("comb c4", move |b| { in comb_c4()
104 c.bench_function("comb c14", move |b| { in comb_c14()
Dtuple_combinations.rs11 c.bench_function("tuple comb for1", move |b| { in tuple_comb_for1()
21 c.bench_function("tuple comb for2", move |b| { in tuple_comb_for2()
33 c.bench_function("tuple comb for3", move |b| { in tuple_comb_for3()
47 c.bench_function("tuple comb for4", move |b| { in tuple_comb_for4()
63 c.bench_function("tuple comb c1", move |b| { in tuple_comb_c1()
73 c.bench_function("tuple comb c2", move |b| { in tuple_comb_c2()
83 c.bench_function("tuple comb c3", move |b| { in tuple_comb_c3()
93 c.bench_function("tuple comb c4", move |b| { in tuple_comb_c4()
Dtuples.rs67 c.bench_function(&stringify!($FOR_CHUNKS).replace('_', " "), move |b| {
82 c.bench_function(&stringify!($FOR_WINDOWS).replace('_', " "), move |b| {
95 c.bench_function(&stringify!($TUPLES).replace('_', " "), move |b| {
108 c.bench_function(&stringify!($CHUNKS).replace('_', " "), move |b| {
121 c.bench_function(&stringify!($TUPLE_WINDOWS).replace('_', " "), move |b| {
134 c.bench_function(&stringify!($WINDOWS).replace('_', " "), move |b| {
Dcombinations_with_replacement.rs5 c.bench_function("comb replacement n10k5", move |b| { in comb_replacement_n10_k5()
15 c.bench_function("comb replacement n5 k10", move |b| { in comb_replacement_n5_k10()
25 c.bench_function("comb replacement n10 k10", move |b| { in comb_replacement_n10_k10()
Dfold_specialization.rs32 c.bench_function("external", move |b| { in external()
47 c.bench_function("internal specialized", move |b| { in internal_specialized()
58 c.bench_function("internal unspecialized", move |b| { in internal_unspecialized()
Dtree_fold1.rs37 c.bench_function(&(stringify!($BENCH_NAME).replace('_', " ") + " sum"), move |b| {
49 … c.bench_function(&(stringify!($BENCH_NAME).replace('_', " ") + " complex iter"), move |b| {
63 … c.bench_function(&(stringify!($BENCH_NAME).replace('_', " ") + " string format"), move |b| {
Dpowerset.rs12 c.bench_function(id.as_str(), move |b| { in powerset_n()
/external/rust/crates/plotters/benches/benches/
Drasterizer.rs12 group.bench_function("rgb", |b| { in draw_pixel()
25 group.bench_function("xbgr", |b| { in draw_pixel()
43 group.bench_function("rgb", |b| { in draw_line()
58 group.bench_function("bgrx", |b| { in draw_line()
78 group.bench_function("rgb", |b| { in fill_background()
86 group.bench_function("bgrx", |b| { in fill_background()
100 g.bench_function("rgb", |b| { in blend_background()
108 g.bench_function("bgrx", |b| { in blend_background()
122 g.bench_function("rgb", |b| { in fill_circle()
131 g.bench_function("bgrx", |b| { in fill_circle()
[all …]
Ddata.rs26 c.bench_function("data::quartiles_calc", |b| { in quartiles_calc()
/external/rust/crates/tinyvec/benches/
Dmacros.rs8 g.bench_function("0 of 32", |b| { in bench_tinyvec_macro()
12 g.bench_function("16 of 32", |b| { in bench_tinyvec_macro()
20 g.bench_function("32 of 32", |b| { in bench_tinyvec_macro()
29 g.bench_function("33 of 32", |b| { in bench_tinyvec_macro()
39 g.bench_function("64 of 32", |b| { in bench_tinyvec_macro()
/external/rust/crates/chrono/benches/
Dchrono.rs12 c.bench_function("bench_datetime_parse_from_rfc2822", |b| { in bench_datetime_parse_from_rfc2822()
21 c.bench_function("bench_datetime_parse_from_rfc3339", |b| { in bench_datetime_parse_from_rfc3339()
30 c.bench_function("bench_datetime_from_str", |b| { in bench_datetime_from_str()
42 c.bench_function("bench_datetime_to_rfc2822", |b| b.iter(|| black_box(dt).to_rfc2822())); in bench_datetime_to_rfc2822()
48 c.bench_function("bench_datetime_to_rfc3339", |b| b.iter(|| black_box(dt).to_rfc3339())); in bench_datetime_to_rfc3339()
52 c.bench_function("bench_year_flags_from_year", |b| { in bench_year_flags_from_year()
Dserde.rs9 c.bench_function("bench_ser_naivedatetime_string", |b| { in bench_ser_naivedatetime_string()
18 c.bench_function("bench_ser_naivedatetime_writer", |b| { in bench_ser_naivedatetime_writer()
/external/rust/crates/criterion/tests/
Dcriterion_tests.rs115 short_benchmark(&dir).bench_function("test_creates_directory", |b| b.iter(|| 10)); in test_creates_directory()
124 .bench_function("test_without_plots", |b| b.iter(|| 10)); in test_without_plots()
148 .bench_function("test_save_baseline", |b| b.iter(|| 10)); in test_save_baseline()
162 .bench_function("test_retain_baseline", |b| b.iter(|| 10)); in test_retain_baseline()
168 .bench_function("test_retain_baseline", |b| b.iter(|| 10)); in test_retain_baseline()
182 .bench_function("test_compare_baseline", |b| b.iter(|| 10)); in test_compare_baseline()
193 .bench_function("test_sample_size", move |b| { in test_sample_size()
211 .bench_function("test_warmup_time_1", move |b| { in test_warmup_time()
220 .bench_function("test_warmup_time_2", move |b| { in test_warmup_time()
236 .bench_function("test_meas_time_1", move |b| b.iter(|| clone.count())); in test_measurement_time()
[all …]
/external/rust/crates/half/benches/
Dconvert.rs110 c.bench_function( in bench_slice_f32_to_f16()
121 c.bench_function( in bench_slice_f32_to_f16()
142 c.bench_function( in bench_slice_f64_to_f16()
153 c.bench_function( in bench_slice_f64_to_f16()
174 c.bench_function( in bench_slice_f16_to_f32()
185 c.bench_function( in bench_slice_f16_to_f32()
206 c.bench_function( in bench_slice_f16_to_f64()
217 c.bench_function( in bench_slice_f16_to_f64()
/external/rust/crates/thread_local/benches/
Dthread_local.rs11 c.bench_function("get", |b| { in main()
19 c.bench_function("insert", |b| { in main()
/external/rust/crates/ahash/tests/
Dmap_tests.rs195 c.bench_function("aes_words", |b| b.iter(|| black_box(ahash_vec(&words)))); in bench_ahash_words()
200 c.bench_function("fx_words", |b| b.iter(|| black_box(fxhash_vec(&words)))); in bench_fx_words()
/external/rust/crates/tinytemplate/benches/
Dbenchmarks.rs34 criterion.bench_function("parse-table", |b| { in parse()

12