mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Add --setup option, closes #8
This commit is contained in:
1 parent
b0bab45e51
commit
a4df90e44c
3 files changed
+47
-14
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user