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

Function large_selection_sort

benches/sort.rs:212–218  ·  view source on GitHub ↗
(b: &mut Bencher)

Source from the content-addressed store, hash-verified

210
211#[bench]
212fn large_selection_sort(b: &mut Bencher) {
213 let data = gen_random_data(DATA_LEN);
214 b.iter(|| {
215 let mut numbs = data.clone();
216 sort::selection::sort(&mut numbs);
217 });
218}
219
220#[bench]
221fn large_selection_tree_selection(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 4

gen_random_dataFunction · 0.85
cloneMethod · 0.80
sortFunction · 0.50
iterMethod · 0.45

Tested by

no test coverage detected