diff --git a/CHANGELOG.md b/CHANGELOG.md index 58ce083..e71dbfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/reporter/fmt.mjs b/src/reporter/fmt.mjs index 027488e..0fb90df 100644 --- a/src/reporter/fmt.mjs +++ b/src/reporter/fmt.mjs @@ -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(',', "'")}`; }