Update Markdown format

This commit is contained in:
sharkdp committed 2018-03-24 21:23:55 +01:00
1 parent fdc4c655d3
commit 355765e7bf
2 files changed
+7 -8

No files matched your search

+2 -2
View File
@@ -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,