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

Function sort_str_std_Vec

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

Source from the content-addressed store, hash-verified

11
12#[bench]
13fn sort_str_std_Vec(b: &mut Bencher) {
14 let i = WORDS3;
15 let mut words = extract_words(i);
16 b.iter(|| {
17 words.sort();
18 });
19}
20
21#[bench]
22fn sort_i32_std_Vec(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 3

extract_wordsFunction · 0.70
iterMethod · 0.45
sortMethod · 0.45

Tested by

no test coverage detected