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

Function small_selection_sort

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

Source from the content-addressed store, hash-verified

194
195#[bench]
196fn small_selection_sort(b: &mut Bencher) {
197 b.iter(|| {
198 let mut numbs = [1, 2, 4, 8, 9, 9, 13, 17, 22];
199 sort::selection::sort(&mut numbs);
200 });
201}
202
203#[bench]
204fn small_selection_tree_selection(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 2

sortFunction · 0.50
iterMethod · 0.45

Tested by

no test coverage detected