Skip to content

Commit

Permalink
fix: align output formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Apr 8, 2024
1 parent 7212a3b commit 3f3c65a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to

## [Unreleased]

### Fixed

- Align `iter/s` with `time (avg)` formatting.

## [0.2.2] - 2024-04-08

### Changed
Expand Down
4 changes: 3 additions & 1 deletion src/reporter/fmt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ export function duration(time) {
}

export function iterPerSecond(iter) {
return `${Number(iter.toFixed(2)).toString()}`;
return `${Number(iter.toFixed(2))
.toLocaleString(locale)
.replaceAll(',', "'")}`;
}

0 comments on commit 3f3c65a

Please sign in to comment.