1 use criterion
::{black_box, criterion_group, criterion_main, Criterion}
;
2 use itertools
::Itertools
;
4 fn comb_replacement_n10_k5(c
: &mut Criterion
) {
5 c
.bench_function("comb replacement n10k5", move |b
| {
7 for i
in (0..10).combinations_with_replacement(5) {
14 fn comb_replacement_n5_k10(c
: &mut Criterion
) {
15 c
.bench_function("comb replacement n5 k10", move |b
| {
17 for i
in (0..5).combinations_with_replacement(10) {
24 fn comb_replacement_n10_k10(c
: &mut Criterion
) {
25 c
.bench_function("comb replacement n10 k10", move |b
| {
27 for i
in (0..10).combinations_with_replacement(10) {
36 comb_replacement_n10_k5
,
37 comb_replacement_n5_k10
,
38 comb_replacement_n10_k10
,
40 criterion_main
!(benches
);