Add --setup option, closes #8

This commit is contained in:
sharkdp committed 2018-01-16 21:26:39 +01:00
1 parent b0bab45e51
commit a4df90e44c
3 files changed
+47 -14

No files matched your search

+4
View File
@@ -21,6 +21,9 @@ pub struct HyperfineOptions {
/// Whether or not to ignore non-zero exit codes
pub ignore_failure: bool,
/// Command to run before each benchmark run
pub setup_command: Option<String>,
}
impl Default for HyperfineOptions {
@@ -30,6 +33,7 @@ impl Default for HyperfineOptions {
min_runs: 10,
min_time_sec: 3.0,
ignore_failure: false,
setup_command: None,
}
}
}