Skip to content

Commit

Permalink
update summary format to be less wide
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 9, 2024
1 parent fae16cb commit fae1898
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ const results = await Promise.all(
})
);

console.table(
results
.slice()
.sort((a, b) => a.name.localeCompare(b.name))
.map(({ name, command, version }) => ({ name, command, version }))
);

console.table(
results
.slice()
.sort((a, b) => a.mean - b.mean)
.map(({ name, command, version, mean }) => ({
.map(({ name, mean }) => ({
name,
command,
version,
mean: formatTime(Math.floor(mean * 1_000_000_000), undefined, 5),
}))
);
Expand All @@ -34,10 +39,8 @@ console.table(
results
.slice()
.sort((a, b) => a.max_rss - b.max_rss)
.map(({ name, command, version, max_rss }) => ({
.map(({ name, max_rss }) => ({
name,
command,
version,
max_rss: formatSize(max_rss, { minimumFractionDigits: 7 }),
}))
);

0 comments on commit fae1898

Please sign in to comment.