We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b71c3d2 commit bfa9b43Copy full SHA for bfa9b43
src/libextra/dlist.rs
@@ -1039,6 +1039,25 @@ mod tests {
1039
}
1040
1041
1042
+ #[bench]
1043
+ fn bench_rotate_to_front(b: &mut test::BenchHarness) {
1044
+ let mut m = DList::new::<int>();
1045
+ m.push_front(0);
1046
+ m.push_front(1);
1047
+ do b.iter {
1048
+ m.rotate_to_front();
1049
+ }
1050
1051
+
1052
1053
+ fn bench_rotate_to_back(b: &mut test::BenchHarness) {
1054
1055
1056
1057
1058
+ m.rotate_to_back();
1059
1060
1061
1062
#[bench]
1063
fn bench_iter(b: &mut test::BenchHarness) {
0 commit comments