summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Peter <mail@david-peter.de>2022-02-13 13:56:03 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2022-02-19 16:53:02 +0100
commitbf4d78dcaf66a23ffd5bb0f8708d9387f54f2b21 (patch)
treeafdc0a931723253038edd31c3031a9c610a55922
parent72d27729faf82cf58dd8caa456c645a0ce319cf8 (diff)
Update code comments
-rw-r--r--src/benchmark/scheduler.rs4
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)?;
}