Skip to content
Myr

Resolve overlap with merged result refactors and iteration support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 8ed8757 · Browse files · 3 files+4 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−12 removed

  • other:+4 added−12 removed

3 files+4 added−12 removed

modified:src/benchmark/benchmark_result.rs-9 removed
12 unmodified lines
13}1415/// Meta data and performance metrics for a single benchmark16#[derive(Debug, Default, Clone, Serialize, PartialEq)]17#[serde(transparent)]18pub struct Parameter {19 pub value: String,20 #[serde(skip)]21 pub is_unused: bool,22}2324/// Meta data and performance metrics for a single benchmark25#[derive(Debug, Default, Clone, PartialEq)]17pub struct BenchmarkResult {18 /// The full command line of the program that is being benchmarked19 pub command: String,20
35 unmodified lines
modified:src/benchmark/mod.rs+3 added-2 removed
257 unmodified lines
258 } else {259 None260 };261262 let benchmark_iteration = BenchmarkIteration::Benchmark(0);262 let preparation_result = run_preparation_command()?;263 let preparation_result = run_preparation_command(benchmark_iteration)?;264 let preparation_overhead = preparation_result.map_or(Time::zero(), |res| {265 res.time_wall_clock + self.executor.time_overhead()266 });267
20 unmodified lines
288 format!("Current estimate: {}", estimate.to_string().green()),289 );290 }291291 let conclusion_result = run_conclusion_command()?;292 let conclusion_result = run_conclusion_command(benchmark_iteration)?;293 let conclusion_overhead = conclusion_result.map_or(Time::zero(), |res| {294 res.time_wall_clock + self.executor.time_overhead()295 });296
201 unmodified lines
modified:src/quantity/statistics.rs+1 added-1 removed
105 unmodified lines
106 let result = standard_deviation_f64(&values);107 Q::unsafe_from_raw_value(result)108}109110/// Compute modifized Z-scores for a given sample. A (unmodified) Z-score is defined by110/// Compute modified Z-scores for a given sample. A (unmodified) Z-score is defined by111/// `(x_i - x_mean)/x_stddev` whereas the modified Z-score is defined by `(x_i - x_median)/MAD`112/// where MAD is the median absolute deviation.113///114/// References:
112 unmodified lines