Skip to content
Myr

Subtract the initial run

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 3f3267e · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:src/main.rs+4 added-2 removed
167 unmodified lines
168 } else {169 options.min_runs170 };171172 let count_remaining = count - 1;173174 // Save the first result175 results.push(res);176177 // Re-configure the progress bar176 bar.set_length(count);178 bar.set_length(count_remaining);179180 // Gather statistics179 for _ in 0..count {181 for _ in 0..count_remaining {182 let msg = {183 let execution_times = results.iter().map(&get_execution_time);184 let mean = format!("{:.3} s", mean(execution_times));185 format!("Current estimate: {:.3}", Green.paint(mean))
176 unmodified lines