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 7d8cc2a commit cbab7ecCopy full SHA for cbab7ec
benchmark/common.js
@@ -283,7 +283,7 @@ function formatResult(data) {
283
let rate = data.rate.toString().split('.');
284
rate[0] = rate[0].replace(/(\d)(?=(?:\d\d\d)+(?!\d))/g, '$1,');
285
rate = (rate[1] ? rate.join('.') : rate[0]);
286
- return `${data.name}${conf}: ${rate}`;
+ return `${data.name}${conf}: ${rate}\n`;
287
}
288
289
function sendResult(data) {
@@ -292,7 +292,7 @@ function sendResult(data) {
292
process.send(data);
293
} else {
294
// Otherwise report by stdout
295
- console.log(formatResult(data));
+ process.stdout.write(formatResult(data));
296
297
298
0 commit comments