Skip to content

Commit 87cb4dc

Browse files
authored
Fix benchmark results being logged as undefined (#1249)
* Correctly output memory benchmarks and runtime benchmarks into CI log * Improved markdown formatting
1 parent b5159f0 commit 87cb4dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/scripts/create_benchmark_check.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ module.exports = ({ github, context, core }) => {
1616

1717
const summary =
1818
`[Open visualizer](https://typescripttolua.github.io/benchviz?d=${compressed.toString("base64")})\n` +
19-
`### Lua5.3\n${benchmarkInfoLua.comparison.summary}\n### LuaJIT\n${benchmarkInfoJIT.comparison.summary}`;
19+
`### Lua5.3
20+
${benchmarkInfoLua.comparison.memory.summary}
21+
${benchmarkInfoLua.comparison.runtime.summary}
22+
---
23+
### LuaJIT
24+
${benchmarkInfoJIT.comparison.memory.summary}
25+
${benchmarkInfoJIT.comparison.runtime.summary}`;
2026

2127
return summary;
2228
};

0 commit comments

Comments
 (0)