mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 00:40:18 +00:00
Do not export intermediate results to stdout, closes #640
This commit is contained in:
1 parent
d2fb7d4c4c
commit
2793d7b994
4 files changed
+50
-22
No files matched your search
@@ -44,10 +44,9 @@ impl<'a> Scheduler<'a> {
|
||||
self.results
|
||||
.push(Benchmark::new(number, cmd, self.options, &*executor).run()?);
|
||||
|
||||
// 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)?;
|
||||
// We export results after each individual benchmark, because
|
||||
// we would risk losing them if a later benchmark fails.
|
||||
self.export_manager.write_results(&self.results, true)?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
@@ -94,4 +93,8 @@ impl<'a> Scheduler<'a> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn final_export(&self) -> Result<()> {
|
||||
self.export_manager.write_results(&self.results, false)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user