Skip to content

Commit

Permalink
same as previous commit, but for the other tables
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 11, 2024
1 parent fae1f05 commit fae13eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ await writeFile(
${markdownTable(
[
['position', 'name', 'mean'],
['#', 'name', 'mean'],
...results
.slice()
.sort((a, b) => a.mean - b.mean)
.map(({ name, mean }, i) => [i + 1, wrap(name), formatTime(Math.floor(mean * 1_000_000_000), undefined, 5)]),
],
{
align: ['c', 'l', 'r'],
align: ['l', 'l', 'r'],
}
)}
Expand All @@ -51,15 +51,15 @@ ${markdownTable(
${markdownTable(
[
['position', 'name', 'size'],
['#', 'name', 'size'],
...results
.slice()
.sort((a, b) => a.name.localeCompare(b.name))
.sort((a, b) => (a.size ?? Infinity) - (b.size ?? Infinity))
.map(({ name, size }, i) => [i + 1, wrap(name), size ? formatSize(size, { minimumFractionDigits: 7 }) : '-']),
],
{
align: ['c', 'l', 'r'],
align: ['l', 'l', 'r'],
}
)}
Expand Down

0 comments on commit fae13eb

Please sign in to comment.