Skip to content
Myr

Update Markdown format

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

authored by sharkdp · committed by sharkdp · parent fdc4c65 · Browse files · 2 files+7 added−8 removed
This commit

State

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

Diff stats

2 files+7 added−8 removed

  • other:+7 added−8 removed

2 files+7 added−8 removed

modified:src/hyperfine/export/markdown.rs+2 added-2 removed
19 unmodified lines
20 }21}2223fn start_table() -> Vec<u8> {24 "| Benchmark | Mean [ms] | Min. [ms] | Max. [ms] |\n|----|----|----|----|\n"24 "| Command | Mean [ms] | Min…Max [ms] |\n|:---|---:|---:|\n"25 .bytes()26 .collect()27}28fn add_table_row(dest: &mut Vec<u8>, entry: &BenchmarkResult) {29 dest.extend(30 format!(31 "| `{}` | {:.1} ± {:.1} | {:.1} | {:.1} |\n",31 "| `{}` | {:.1} ± {:.1} | {:.1}…{:.1} |\n",32 entry.command.replace("|", "\\|"),33 entry.mean * MULTIPLIER,34 entry.stddev * MULTIPLIER,35 entry.min * MULTIPLIER,
4 unmodified lines
modified:README.md+5 added-6 removed