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

Function large_quick

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

Source from the content-addressed store, hash-verified

149
150#[bench]
151fn large_quick(b: &mut Bencher) {
152 let data = gen_random_data(DATA_LEN);
153 b.iter(|| {
154 let mut numbs = data.clone();
155 sort::quick::sort(&mut numbs);
156 });
157}
158
159#[bench]
160fn large_quick_3way(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