pub struct ExportResult {
pub command: String,
pub bench: String,
pub subject: String,
pub version: Option<Option<String>>,
pub mean: f64,
pub stddev: Option<f64>,
pub median: f64,
pub min: f64,
pub max: f64,
pub times: Vec<f64>,
pub exit_codes: Vec<i32>,
pub checks: Option<Checks>,
}Fields§
§command: Stringhyperfine’s display name: the subject, or the benchmark for a single-command one.
bench: String§subject: String§version: Option<Option<String>>What the subject’s version_cmd printed. Absent when it has none,
null when it failed — a subject is still measured and exported
without its version.
mean: f64Seconds, like hyperfine, not the milliseconds tak records.
stddev: Option<f64>null for a single sample, as hyperfine writes it.
median: f64§min: f64§max: f64§times: Vec<f64>Every timed sample in seconds, in the order taken.
exit_codes: Vec<i32>What each sample exited with, aligned with times. Always one of the
subject’s ok_exit_codes (0 unless it says otherwise): a sample that
exits with anything else drops its subject rather than being kept. A
failed check is not a failed run, and is reported in checks.
checks: Option<Checks>The outcome of the subject’s check, when it has one.
Implementations§
Source§impl ExportResult
impl ExportResult
Sourcepub fn new(
bench: &str,
subject: &str,
command: &str,
samples_ms: &[f64],
) -> Self
pub fn new( bench: &str, subject: &str, command: &str, samples_ms: &[f64], ) -> Self
A result whose samples all exited 0; see Self::with_exit_codes.
Sourcepub fn with_exit_codes(self, codes: &[i32]) -> Self
pub fn with_exit_codes(self, codes: &[i32]) -> Self
Record what each sample actually exited with, one per sample.
Sourcepub fn with_checks(self, samples: &[bool]) -> Self
pub fn with_checks(self, samples: &[bool]) -> Self
Attach a subject’s check outcomes, one per sample.