Yet another API iteration

This commit is contained in:
David Peter authored and David Peter committed 2026-10-05 16:00:21 +02:00
1 parent 7d408d6a0d
commit 534d5683ab
6 files changed
+50 -41

No files matched your search

+2 -1
View File
@@ -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() {
+2 -4
View File
@@ -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()
};