Skip to content

Commit

Permalink
Remove --dump-only-significant option as uneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
bazhenov committed Dec 15, 2023
1 parent 1d67278 commit 87c6054
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tango-bench/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ enum BenchmarkMode {
#[arg(short = 'd', long = "dump")]
path_to_dump: Option<PathBuf>,

#[arg(long = "dump-only-significant", default_value_t = false)]
dump_only_significant: bool,

/// seed for the random number generator or omit to use a random seed
#[arg(long = "seed")]
seed: Option<u64>,
Expand Down Expand Up @@ -125,7 +122,6 @@ pub fn run(mut settings: MeasurementSettings) -> Result<ExitCode> {
fail_threshold,
significant_only,
seed,
dump_only_significant,
sampler,
} => {
let mut reporter: Box<dyn Reporter> = if verbose {
Expand Down Expand Up @@ -181,7 +177,6 @@ pub fn run(mut settings: MeasurementSettings) -> Result<ExitCode> {
&settings,
loop_mode,
path_to_dump.as_ref(),
dump_only_significant,
)?;

if result.diff_estimate.significant || !significant_only {
Expand Down Expand Up @@ -356,7 +351,6 @@ mod commands {
settings: &MeasurementSettings,
loop_mode: LoopMode,
samples_dump_path: Option<impl AsRef<Path>>,
dump_only_significant: bool,
) -> Result<RunResult> {
let a_func = a.lookup(test_name).expect("Invalid test name given");
let b_func = b.lookup(test_name).expect("Invalid test name given");
Expand Down Expand Up @@ -419,7 +413,7 @@ mod commands {
)
.ok_or(Error::NoMeasurements)?;

if run_result.diff_estimate.significant || !dump_only_significant {
if run_result.diff_estimate.significant {
if let Some(path) = samples_dump_path {
let file_name = format!("{}.csv", test_name.replace('/', "-"));
let file_path = path.as_ref().join(file_name);
Expand Down

0 comments on commit 87c6054

Please sign in to comment.