Update code comments

This commit is contained in:
David Peter authored and David Peter committed 2022-02-19 16:53:02 +01:00
1 parent 72d27729fa
commit bf4d78dcaf
1 file changed
+2 -2
+2 -2
View File
@@ -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)?;
}