mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Yet another API iteration
This commit is contained in:
1 parent
7d408d6a0d
commit
534d5683ab
6 files changed
+50
-41
No files matched your search
+2
-1
@@ -53,7 +53,8 @@ impl Exporter for CsvExporter {
|
||||
res.measurements.max(),
|
||||
] {
|
||||
fields.push(Cow::Owned(
|
||||
f.format(CSV_UNIT, Some(CSV_PRECISION)).into_bytes(),
|
||||
f.format_with_precision(CSV_UNIT, CSV_PRECISION)
|
||||
.into_bytes(),
|
||||
))
|
||||
}
|
||||
for v in res.parameters.values() {
|
||||
|
||||
@@ -51,11 +51,9 @@ pub trait MarkupExporter {
|
||||
let result = &entry.result;
|
||||
// prepare data row strings
|
||||
let cmd_str = result.command_with_unused_parameters().replace('|', "\\|");
|
||||
let mean_str = result
|
||||
.mean_wall_clock_time()
|
||||
.format_value_auto(Some(time_unit));
|
||||
let mean_str = result.mean_wall_clock_time().format_value(time_unit);
|
||||
let stddev_str = if let Some(stddev) = result.measurements.stddev() {
|
||||
format!(" ± {}", stddev.format_value_auto(Some(time_unit)))
|
||||
format!(" ± {}", stddev.format_value(time_unit))
|
||||
} else {
|
||||
"".into()
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user