Skip to content

Commit f969cc3

Browse files
aduh95danielleadams
authored andcommitted
benchmark: add trailing commas in benchmark/fs
PR-URL: #46426 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name>
1 parent b1bde69 commit f969cc3

15 files changed

+15
-16
lines changed

benchmark/.eslintrc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ overrides:
1313
- buffers/*.js
1414
- buffers-fill/*.js
1515
- crypto/*.js
16-
- fs/*.js
1716
- http/*.js
1817
- http2/*.js
1918
- misc/*.js

benchmark/fs/bench-opendir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, {
88
n: [100],
99
dir: [ 'lib', 'test/parallel'],
1010
mode: [ 'async', 'sync', 'callback' ],
11-
bufferSize: [ 4, 32, 1024 ]
11+
bufferSize: [ 4, 32, 1024 ],
1212
});
1313

1414
async function main({ n, dir, mode, bufferSize }) {

benchmark/fs/bench-readdir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77
const bench = common.createBenchmark(main, {
88
n: [10],
99
dir: [ 'lib', 'test/parallel'],
10-
withFileTypes: ['true', 'false']
10+
withFileTypes: ['true', 'false'],
1111
});
1212

1313
function main({ n, dir, withFileTypes }) {

benchmark/fs/bench-readdirSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const path = require('path');
77
const bench = common.createBenchmark(main, {
88
n: [10],
99
dir: [ 'lib', 'test/parallel'],
10-
withFileTypes: ['true', 'false']
10+
withFileTypes: ['true', 'false'],
1111
});
1212

1313

benchmark/fs/bench-stat-promise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fsPromises = require('fs').promises;
55

66
const bench = common.createBenchmark(main, {
77
n: [20e4],
8-
statType: ['fstat', 'lstat', 'stat']
8+
statType: ['fstat', 'lstat', 'stat'],
99
});
1010

1111
async function run(n, statType) {

benchmark/fs/bench-stat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fs = require('fs');
55

66
const bench = common.createBenchmark(main, {
77
n: [20e4],
8-
statType: ['fstat', 'lstat', 'stat']
8+
statType: ['fstat', 'lstat', 'stat'],
99
});
1010

1111

benchmark/fs/bench-statSync-failure.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path');
66

77
const bench = common.createBenchmark(main, {
88
n: [1e6],
9-
statSyncType: ['throw', 'noThrow']
9+
statSyncType: ['throw', 'noThrow'],
1010
});
1111

1212

benchmark/fs/bench-statSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fs = require('fs');
55

66
const bench = common.createBenchmark(main, {
77
n: [1e6],
8-
statSyncType: ['fstatSync', 'lstatSync', 'statSync']
8+
statSyncType: ['fstatSync', 'lstatSync', 'statSync'],
99
});
1010

1111

benchmark/fs/read-stream-throughput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
1515
encodingType: ['buf', 'asc', 'utf'],
1616
filesize: [1000 * 1024],
1717
highWaterMark: [1024, 4096, 65535, 1024 * 1024],
18-
n: 1024
18+
n: 1024,
1919
});
2020

2121
function main(conf) {
@@ -72,7 +72,7 @@ function runTest(filesize, highWaterMark, encoding, n) {
7272
assert(fs.statSync(filename).size === filesize * n);
7373
const rs = fs.createReadStream(filename, {
7474
highWaterMark,
75-
encoding
75+
encoding,
7676
});
7777

7878
rs.on('open', () => {

benchmark/fs/readFileSync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
const fs = require('fs');
55

66
const bench = common.createBenchmark(main, {
7-
n: [60e4]
7+
n: [60e4],
88
});
99

1010
function main({ n }) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy