Skip to content

Commit

Permalink
TEST: Add bench for .sort_by()
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Jan 3, 2018
1 parent e711dbb commit 042cc85
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,3 +643,14 @@ fn many_retain_hashmap_100_000(b: &mut Bencher) {
map
});
}

#[bench]
fn ordermap_sort(b: &mut Bencher) {
let map = OMAP_100K.clone();

// there's a map clone there, but it's still useful to profile this
b.iter(|| {
let mut map = map.clone();
map.sort_keys();
});
}

0 comments on commit 042cc85

Please sign in to comment.