diff --git a/benchmark/common.js b/benchmark/common.js index 94f11a2be9..1ab734222a 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 16e620f9a0..52ce74024e 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}`); } });