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

Function large_sorted_asc_quick

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

Source from the content-addressed store, hash-verified

167
168#[bench]
169fn large_sorted_asc_quick(b: &mut Bencher) {
170 let data = gen_asc_data(DATA_LEN);
171 b.iter(|| {
172 let mut numbs = data.clone();
173 sort::quick::sort(&mut numbs);
174 });
175}
176
177#[bench]
178fn large_sorted_desc_quick(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected