mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
More simplifications
This commit is contained in:
1 parent
f7e6d7286f
commit
8ba632c954
5 files changed
+39
-51
No files matched your search
+7
-7
@@ -44,13 +44,13 @@ impl Exporter for CsvExporter {
|
||||
for res in results {
|
||||
let mut fields = vec![Cow::Borrowed(res.command.as_bytes())];
|
||||
for f in &[
|
||||
res.mean(),
|
||||
res.stddev().unwrap_or(0.0),
|
||||
res.median(),
|
||||
res.user_mean(),
|
||||
res.system_mean(),
|
||||
res.min(),
|
||||
res.max(),
|
||||
res.mean_wall_clock_time(),
|
||||
res.runs.stddev().unwrap_or(0.0),
|
||||
res.runs.median(),
|
||||
res.runs.user_mean(),
|
||||
res.runs.system_mean(),
|
||||
res.runs.min(),
|
||||
res.runs.max(),
|
||||
] {
|
||||
fields.push(Cow::Owned(
|
||||
f.format_with_precision(CSV_UNIT, CSV_PRECISION)
|
||||
|
||||
Reference in new issue
Block a user