bench: Remove usage of fmt!

This commit is contained in:
Alex Crichton
2013-09-29 23:13:47 -07:00
parent 02054ac8a1
commit 73c6c9109f
13 changed files with 55 additions and 54 deletions

View File

@@ -31,11 +31,11 @@ fn main() {
fn run(repeat: int, depth: int) {
for _ in range(0, repeat) {
info!("starting %.4f", precise_time_s());
info2!("starting {:.4f}", precise_time_s());
do task::try {
recurse_or_fail(depth, None)
};
info!("stopping %.4f", precise_time_s());
info2!("stopping {:.4f}", precise_time_s());
}
}
@@ -68,8 +68,8 @@ fn r(l: @nillist) -> r {
fn recurse_or_fail(depth: int, st: Option<State>) {
if depth == 0 {
info!("unwinding %.4f", precise_time_s());
fail!();
info2!("unwinding {:.4f}", precise_time_s());
fail2!();
} else {
let depth = depth - 1;