Skip to content
Myr

Higher precision for rel. speed in markdown output

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

closes #208

authored by sharkdp · committed by sharkdp · parent 40b6774 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/export/markdown.rs+1 added-1 removed
50 unmodified lines
51 let mean_str = format_duration_value(result.mean, Some(unit)).0;52 let stddev_str = format_duration_value(result.stddev, Some(unit)).0;53 let min_str = format_duration_value(result.min, Some(unit)).0;54 let max_str = format_duration_value(result.max, Some(unit)).0;55 let rel_str = format!("{:.1}", entry.relative_speed);55 let rel_str = format!("{:.2}", entry.relative_speed);5657 dest.extend(58 format!(59 "| `{command}` | {mean} ± {stddev} | {min} | {max} | {rel} |\n",
211 unmodified lines