Skip to content

Commit

Permalink
refactor: display error margin in blue
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
  • Loading branch information
jerome-benoit committed May 20, 2024
1 parent 9b02683 commit bef6a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reporter/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function benchmark(
}${
!rmoe
? ''
: ${clr.yellow(colors, errorMargin(stats.rmoe))}`.padStart(
: ${clr.blue(colors, errorMargin(stats.rmoe))}`.padStart(
14 + 10 * colors,
' ',
)
Expand Down Expand Up @@ -162,7 +162,7 @@ export function summary(benchmarks, { colors = true }) {
return `\n ${clr[1 > ratio ? 'red' : 'green'](
colors,
1 > ratio ? speedRatio(1 / checkDividend(ratio)) : speedRatio(ratio),
)} ± ${clr.yellow(colors, errorMargin(ratioRmoe))} times ${
)} ± ${clr.blue(colors, errorMargin(ratioRmoe))} times ${
1 > ratio ? 'slower' : 'faster'
} than ${clr.bold(colors, clr.cyan(colors, benchmark.name))}`;
})
Expand Down

0 comments on commit bef6a61

Please sign in to comment.