We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
console.log()
1 parent 4f11b8b commit 0a99d57Copy full SHA for 0a99d57
1 file changed
benchmark/common.js
@@ -271,7 +271,7 @@ function formatResult(data) {
271
let rate = data.rate.toString().split('.');
272
rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,');
273
rate = (rate[1] ? rate.join('.') : rate[0]);
274
- return `${data.name}${conf}: ${rate}`;
+ return `${data.name}${conf}: ${rate}\n`;
275
}
276
277
function sendResult(data) {
@@ -280,7 +280,7 @@ function sendResult(data) {
280
process.send(data);
281
} else {
282
// Otherwise report by stdout
283
- console.log(formatResult(data));
+ process.stdout.write(formatResult(data));
284
285
286
0 commit comments