extern crate collections;
extern crate time;
+extern crate debug;
-use collections::SmallIntMap;
+use std::collections::SmallIntMap;
use std::os;
use std::uint;
fn main() {
let args = os::args();
let args = if os::getenv("RUST_BENCH").is_some() {
- vec!(~"", ~"100000", ~"100")
+ vec!("".to_string(), "100000".to_string(), "100".to_string())
} else if args.len() <= 1u {
- vec!(~"", ~"10000", ~"50")
+ vec!("".to_string(), "10000".to_string(), "50".to_string())
} else {
- args.move_iter().collect()
+ args.into_iter().collect()
};
- let max = from_str::<uint>(*args.get(1)).unwrap();
- let rep = from_str::<uint>(*args.get(2)).unwrap();
+ let max = from_str::<uint>(args.get(1).as_slice()).unwrap();
+ let rep = from_str::<uint>(args.get(2).as_slice()).unwrap();
let mut checkf = 0.0;
let mut appendf = 0.0;