From 2ec27d5f68a4eec98ee3fd26c580c1e9e07a2c62 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 11 May 2024 21:13:10 +0200 Subject: [PATCH] Add benchmarks comparison job --- scripts/ci/post_benchmark_results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci/post_benchmark_results.py b/scripts/ci/post_benchmark_results.py index 8ccbc2023..13769b863 100644 --- a/scripts/ci/post_benchmark_results.py +++ b/scripts/ci/post_benchmark_results.py @@ -14,9 +14,9 @@ def create_markdown_table(results): header = "| Benchmark | Base | PR |\n|-----------|------|----|" rows = [] for result in results: - base = result['base'] - pr = result['pr'] - row = f"| {result['name']} | ```\n{base}\n``` | ```\n{pr}\n``` |" + base = result['base'].replace('\n', '
') + pr = result['pr'].replace('\n', '
') + row = f"| {result['name']} |
{base}
|
{pr}
|" rows.append(row) return f"{header}\n" + "\n".join(rows)