diff options
author | David Peter <mail@david-peter.de> | 2022-02-13 13:56:03 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2022-02-19 16:53:02 +0100 |
commit | bf4d78dcaf66a23ffd5bb0f8708d9387f54f2b21 (patch) | |
tree | afdc0a931723253038edd31c3031a9c610a55922 | |
parent | 72d27729faf82cf58dd8caa456c645a0ce319cf8 (diff) |
Update code comments
-rw-r--r-- | src/benchmark/scheduler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark/scheduler.rs b/src/benchmark/scheduler.rs index eeda551..ca950c4 100644 --- a/src/benchmark/scheduler.rs +++ b/src/benchmark/scheduler.rs @@ -35,12 +35,12 @@ impl<'a> Scheduler<'a> { self.options.show_output, )?; - // Run the benchmarks for (num, cmd) in self.commands.iter().enumerate() { self.results .push(run_benchmark(num, cmd, shell_spawning_time, self.options)?); - // Export (intermediate) results + // We export (all results so far) after each individual benchmark, because + // we would risk losing all results if a later benchmark fails. self.export_manager .write_results(&self.results, self.options.time_unit)?; } |