mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 16:40:18 +00:00
Subtract the initial run
This commit is contained in:
1 parent
3f3267e424
commit
460fa62290
1 file changed
+4
-2
+4
-2
@@ -169,14 +169,16 @@ fn run_benchmark(
|
||||
options.min_runs
|
||||
};
|
||||
|
||||
let count_remaining = count - 1;
|
||||
|
||||
// Save the first result
|
||||
results.push(res);
|
||||
|
||||
// Re-configure the progress bar
|
||||
bar.set_length(count);
|
||||
bar.set_length(count_remaining);
|
||||
|
||||
// Gather statistics
|
||||
for _ in 0..count {
|
||||
for _ in 0..count_remaining {
|
||||
let msg = {
|
||||
let execution_times = results.iter().map(&get_execution_time);
|
||||
let mean = format!("{:.3} s", mean(execution_times));
|
||||
|
||||
Reference in new issue
Block a user