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 67394f2 commit 5444f60Copy full SHA for 5444f60
src/libstd/vec.rs
@@ -3758,7 +3758,9 @@ mod tests {
3758
#[cfg(test)]
3759
mod bench {
3760
use extra::test::BenchHarness;
3761
+ use iter::range;
3762
use vec;
3763
+ use vec::VectorVector;
3764
use option::*;
3765
3766
#[bench]
@@ -3798,4 +3800,20 @@ mod bench {
3798
3800
xs + ys;
3799
3801
}
3802
3803
+
3804
+ #[bench]
3805
+ fn concat(bh: &mut BenchHarness) {
3806
+ let xss: &[~[uint]] = vec::from_fn(100, |i| range(0, i).collect());
3807
+ do bh.iter {
3808
+ xss.concat_vec();
3809
+ }
3810
3811
3812
3813
+ fn connect(bh: &mut BenchHarness) {
3814
3815
3816
+ xss.connect_vec(&0);
3817
3818
3819
0 commit comments