mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Update Markdown format
This commit is contained in:
1 parent
fdc4c655d3
commit
355765e7bf
2 files changed
+7
-8
No files matched your search
@@ -21,14 +21,14 @@ impl Exporter for MarkdownExporter {
|
||||
}
|
||||
|
||||
fn start_table() -> Vec<u8> {
|
||||
"| Benchmark | Mean [ms] | Min. [ms] | Max. [ms] |\n|----|----|----|----|\n"
|
||||
"| Command | Mean [ms] | Min…Max [ms] |\n|:---|---:|---:|\n"
|
||||
.bytes()
|
||||
.collect()
|
||||
}
|
||||
fn add_table_row(dest: &mut Vec<u8>, entry: &BenchmarkResult) {
|
||||
dest.extend(
|
||||
format!(
|
||||
"| `{}` | {:.1} ± {:.1} | {:.1} | {:.1} |\n",
|
||||
"| `{}` | {:.1} ± {:.1} | {:.1}…{:.1} |\n",
|
||||
entry.command.replace("|", "\\|"),
|
||||
entry.mean * MULTIPLIER,
|
||||
entry.stddev * MULTIPLIER,
|
||||
|
||||
Reference in new issue
Block a user