MCPcopy Create free account
hub / github.com/douchuan/algorithm / MSD_worst_case

Function MSD_worst_case

benches/strings.rs:66–72  ·  view source on GitHub ↗
(b: &mut Bencher)

Source from the content-addressed store, hash-verified

64
65#[bench]
66fn MSD_worst_case(b: &mut Bencher) {
67 // examines just 1 char to distinguish among the keys
68 let mut words = vec!["1DNB377"; 26];
69 b.iter(|| {
70 MSD::sort(&mut words);
71 });
72}
73
74#[bench]
75fn MSD_best_case(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 2

sortFunction · 0.50
iterMethod · 0.45

Tested by

no test coverage detected