diff --git a/benchmark/common.js b/benchmark/common.js index 94f11a2be96933..1ab734222a0498 100644 --- a/benchmark/common.js +++ b/benchmark/common.js @@ -185,7 +185,9 @@ function formatResult(data) { conf += ' ' + key + '=' + JSON.stringify(data.conf[key]); } - return `${data.name}${conf}: ${data.rate}`; + const rate = Math.floor(data.rate) + .toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,'); + return `${data.name}${conf}: ${rate}`; } function sendResult(data) { diff --git a/benchmark/run.js b/benchmark/run.js index 16e620f9a0db7b..52ce74024e1ae4 100644 --- a/benchmark/run.js +++ b/benchmark/run.js @@ -56,7 +56,9 @@ if (format === 'csv') { conf = conf.replace(/"/g, '""'); console.log(`"${data.name}", "${conf}", ${data.rate}, ${data.time}`); } else { - console.log(`${data.name} ${conf}: ${data.rate}`); + const rate = Math.floor(data.rate) + .toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,'); + console.log(`${data.name} ${conf}: ${rate}`); } });