(b: &mut Bencher)
| 73 | |
| 74 | #[bench] |
| 75 | fn MSD_best_case(b: &mut Bencher) { |
| 76 | // all strings equal, need check all chars |
| 77 | let words = common::util::vec_alphabet("1DNB377".len()); |
| 78 | let mut words: Vec<&str> = words.iter().map(|it| it.as_str()).collect(); |
| 79 | b.iter(|| { |
| 80 | MSD::sort(&mut words); |
| 81 | }); |
| 82 | } |
| 83 | |
| 84 | #[bench] |
| 85 | fn sub_search_kmp(b: &mut Bencher) { |
nothing calls this directly
no test coverage detected