Skip to content

Commit a884dee

Browse files
committed
ci: benchmark: Sort the charts
1 parent 0d06644 commit a884dee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ci/github-actions/illustrate-benchmark-reports.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ async function main() {
122122
console.error(jsonFile, '→', svgFile)
123123
const report = JSON.parse(readFileSync(jsonFile, 'utf-8'))
124124
assertReport(report)
125+
report.results.sort((left, right) => left.mean - right.mean)
125126
const svgSuffix = await renderToString(renderReport(report))
126127
const svgFileContent = `${xmlHeader}\n${svgSuffix}`
127128
writeFileSync(svgFile, svgFileContent)

0 commit comments

Comments
 (0)