Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2021-01-23 17:58:24 +0300
committerJames M Snell <jasnell@gmail.com>2021-01-25 18:05:31 +0300
commit9da3f217efe1c9c11e4e0c4670b5e581b1d65054 (patch)
tree72e31d756c91ccca1f82f7a0c37e7669dabc4fc0 /benchmark
parentcd1e73a96ef6a644fa3b295440b8904cc7d05c4e (diff)
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>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/compare.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/compare.js b/benchmark/compare.js
index 5c9cd03be3f..169948e006d 100644
--- a/benchmark/compare.js
+++ b/benchmark/compare.js
@@ -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);