mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-12-03 21:31:03 +00:00
Resolve overlap with merged result refactors and iteration support
This commit is contained in:
1 parent
8ed8757ac2
commit
6af615c19f
3 files changed
+4
-12
No files matched your search
@@ -259,7 +259,8 @@ impl<'a> Benchmark<'a> {
|
||||
None
|
||||
};
|
||||
|
||||
let preparation_result = run_preparation_command()?;
|
||||
let benchmark_iteration = BenchmarkIteration::Benchmark(0);
|
||||
let preparation_result = run_preparation_command(benchmark_iteration)?;
|
||||
let preparation_overhead = preparation_result.map_or(Time::zero(), |res| {
|
||||
res.time_wall_clock + self.executor.time_overhead()
|
||||
});
|
||||
@@ -288,7 +289,7 @@ impl<'a> Benchmark<'a> {
|
||||
);
|
||||
}
|
||||
|
||||
let conclusion_result = run_conclusion_command()?;
|
||||
let conclusion_result = run_conclusion_command(benchmark_iteration)?;
|
||||
let conclusion_overhead = conclusion_result.map_or(Time::zero(), |res| {
|
||||
res.time_wall_clock + self.executor.time_overhead()
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user