From 035de6d2b31747aff35d2c58be3535dabcdc8b6c Mon Sep 17 00:00:00 2001 From: Lorenz Junglas Date: Sun, 3 Apr 2022 23:38:22 +0200 Subject: [PATCH 1/2] Correctly output memory benchmarks and runtime benchmarks into CI log --- .github/scripts/create_benchmark_check.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/scripts/create_benchmark_check.js b/.github/scripts/create_benchmark_check.js index e1d303e06..782a106cd 100644 --- a/.github/scripts/create_benchmark_check.js +++ b/.github/scripts/create_benchmark_check.js @@ -16,7 +16,17 @@ module.exports = ({ github, context, core }) => { const summary = `[Open visualizer](https://typescripttolua.github.io/benchviz?d=${compressed.toString("base64")})\n` + - `### Lua5.3\n${benchmarkInfoLua.comparison.summary}\n### LuaJIT\n${benchmarkInfoJIT.comparison.summary}`; + `### Lua5.3 + #### Memory + ${benchmarkInfoLua.comparison.memory.summary} + #### Runtime + ${benchmarkInfoLua.comparison.runtime.summary} + --- + ### LuaJIT + #### Memory + ${benchmarkInfoJIT.comparison.memory.summary} + #### Runtime + ${benchmarkInfoJIT.comparison.runtime.summary}`; return summary; }; From 4c914c124e5ffe7227fcf3026d0a76ae8fb5f889 Mon Sep 17 00:00:00 2001 From: Lorenz Junglas Date: Sun, 3 Apr 2022 23:42:26 +0200 Subject: [PATCH 2/2] Improved markdown formatting --- .github/scripts/create_benchmark_check.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/scripts/create_benchmark_check.js b/.github/scripts/create_benchmark_check.js index 782a106cd..4d9ac86cc 100644 --- a/.github/scripts/create_benchmark_check.js +++ b/.github/scripts/create_benchmark_check.js @@ -17,16 +17,12 @@ module.exports = ({ github, context, core }) => { const summary = `[Open visualizer](https://typescripttolua.github.io/benchviz?d=${compressed.toString("base64")})\n` + `### Lua5.3 - #### Memory - ${benchmarkInfoLua.comparison.memory.summary} - #### Runtime - ${benchmarkInfoLua.comparison.runtime.summary} - --- - ### LuaJIT - #### Memory - ${benchmarkInfoJIT.comparison.memory.summary} - #### Runtime - ${benchmarkInfoJIT.comparison.runtime.summary}`; +${benchmarkInfoLua.comparison.memory.summary} +${benchmarkInfoLua.comparison.runtime.summary} +--- +### LuaJIT +${benchmarkInfoJIT.comparison.memory.summary} +${benchmarkInfoJIT.comparison.runtime.summary}`; return summary; };