toml
[dependencies]
stderr = "0.8.0"
bench_timer = "0.1.0"
or
toml
[dependencies]
stderr = "0.8.0"
bench_timer = { git = "https://github.com/biluohc/bench_timer", branch = "master", version = "0.1.0"}
```rust
extern crate stderr;
extern crate bench_timer;
fn main() { let msg = std::env::args() .skip(1) .next() .unwrapor("fuck u".toowned());
timer_sort!(3,
100000,
to_owed(),
new(),
default(),
format(),
insert_e(&msg),
push_str(&msg),
format_s(&msg),
insert_0(&msg),
mul_args_add(&msg, ": cargo"),
mul_args_like_push_str(&msg, ": cargo")
);
}
fn toowed() { let s = "".toowned(); dbln!("{}", s); }
fn new() { let s = String::new(); dbln!("{}", s); }
fn default() { let s = String::default(); dbln!("{}", s); }
fn format() { let s = format!("{}", ""); dbln!("{}", s); }
fn pushstr(msg: &str) { let mut s = msg.toowned(); s.push_str(": cargo"); dbln!("{}", s); }
fn format_s(msg: &str) { let s = format!("{}: cargo", msg); dbln!("{}", s); }
fn insert0(msg: &str) { let mut s = ": cargo".toowned(); s.insert_str(0, msg); dbln!("{}", s); }
fn inserte(msg: &str) { let mut s = ": cargo".toowned(); let len = s.len(); s.insert_str(len, msg); dbln!("{}", s); }
fn mulargsadd(msg0: &str, msg1: &str) { let s = msg0.to_owned() + msg1; dbln!("{}", s); }
fn mulargslikepushstr(msg0: &str, msg1: &str) { let mut s = msg0.toowned(); s.pushstr(msg1); dbln!("{}", s); } ```