@@ -975,13 +975,6 @@ mod tests {
975
975
let _: DList <int> = v. iter( ) . transform( |x| * x) . collect( ) ;
976
976
}
977
977
}
978
- #[ bench]
979
- fn bench_collect_into_vec( b: & mut test:: BenchHarness ) {
980
- let v = & [ 0 , ..64 ] ;
981
- do b. iter {
982
- let _: ~[ int] = v. iter( ) . transform( |& x|x) . collect( ) ;
983
- }
984
- }
985
978
986
979
#[ bench]
987
980
fn bench_push_front( b: & mut test:: BenchHarness ) {
@@ -990,14 +983,6 @@ mod tests {
990
983
m. push_front( 0 ) ;
991
984
}
992
985
}
993
- #[ bench]
994
- fn bench_push_front_vec_size10( b: & mut test:: BenchHarness ) {
995
- let mut m = ~[ 0 , ..10 ] ;
996
- do b. iter {
997
- m. unshift( 0 ) ;
998
- m. pop( ) ; // to keep it fair, dont' grow the vec
999
- }
1000
- }
1001
986
1002
987
#[ bench]
1003
988
fn bench_push_back( b: & mut test:: BenchHarness ) {
@@ -1006,13 +991,7 @@ mod tests {
1006
991
m. push_back( 0 ) ;
1007
992
}
1008
993
}
1009
- #[ bench]
1010
- fn bench_push_back_vec( b: & mut test:: BenchHarness ) {
1011
- let mut m = ~[ ] ;
1012
- do b. iter {
1013
- m. push( 0 ) ;
1014
- }
1015
- }
994
+
1016
995
#[ bench]
1017
996
fn bench_push_back_pop_back( b: & mut test:: BenchHarness ) {
1018
997
let mut m = DList :: new:: <int>( ) ;
@@ -1021,14 +1000,6 @@ mod tests {
1021
1000
m. pop_back( ) ;
1022
1001
}
1023
1002
}
1024
- #[ bench]
1025
- fn bench_push_back_pop_back_vec( b: & mut test:: BenchHarness ) {
1026
- let mut m = ~[ ] ;
1027
- do b. iter {
1028
- m. push( 0 ) ;
1029
- m. pop( ) ;
1030
- }
1031
- }
1032
1003
1033
1004
#[ bench]
1034
1005
fn bench_push_front_pop_front( b: & mut test:: BenchHarness ) {
@@ -1091,12 +1062,5 @@ mod tests {
1091
1062
assert!( m. mut_rev_iter( ) . len_( ) == 128 ) ;
1092
1063
}
1093
1064
}
1094
- #[ bench]
1095
- fn bench_iter_vec( b: & mut test:: BenchHarness ) {
1096
- let v = & [ 0 , ..128 ] ;
1097
- do b. iter {
1098
- for v. iter( ) . advance |_| { }
1099
- }
1100
- }
1101
1065
}
1102
1066
0 commit comments