mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
benchmark: make output RFC 4180 compliant
PR-URL: https://github.com/nodejs/node/pull/37038 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
a7b6464097
commit
ec22756ac9
|
|
@ -56,7 +56,7 @@ for (const filename of benchmarks) {
|
|||
// queue.length = binary.length * runs * benchmarks.length
|
||||
|
||||
// Print csv header
|
||||
console.log('"binary", "filename", "configuration", "rate", "time"');
|
||||
console.log('"binary","filename","configuration","rate","time"');
|
||||
|
||||
const kStartOfQueue = 0;
|
||||
|
||||
|
|
@ -85,8 +85,8 @@ if (showProgress) {
|
|||
// Escape quotes (") for correct csv formatting
|
||||
conf = conf.replace(/"/g, '""');
|
||||
|
||||
console.log(`"${job.binary}", "${job.filename}", "${conf}", ` +
|
||||
`${data.rate}, ${data.time}`);
|
||||
console.log(`"${job.binary}","${job.filename}","${conf}",` +
|
||||
`${data.rate},${data.time}`);
|
||||
if (showProgress) {
|
||||
// One item in the subqueue has been completed.
|
||||
progress.completeConfig(data);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user