Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ small_quick
Function
small_quick
benches/sort.rs:143–148 ·
view source on GitHub ↗
(b: &mut Bencher)
Source
from the content-addressed store, hash-verified
141
142
#[bench]
143
fn small_quick(b: &mut Bencher) {
144
b.iter(|| {
145
let mut numbs = [1, 2, 4, 8, 9, 9, 13, 17, 22];
146
sort::quick::sort(&mut numbs);
147
});
148
}
149
150
#[bench]
151
fn large_quick(b: &mut Bencher) {
Callers
nothing calls this directly
Calls
2
sort
Function · 0.50
iter
Method · 0.45
Tested by
no test coverage detected