Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b364b9b

Browse filesBrowse files
aduh95MylesBorins
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 05ad792 commit b364b9b
Copy full SHA for b364b9b
Expand file treeCollapse file tree

15 files changed

+15
-16
lines changed
Open diff view settings
Collapse file

‎benchmark/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: benchmark/.eslintrc.yaml
-1Lines 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
Collapse file

‎benchmark/fs/bench-opendir.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-opendir.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/fs/bench-readdir.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-readdir.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/fs/bench-readdirSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-readdirSync.js
+1-1Lines 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

Collapse file

‎benchmark/fs/bench-stat-promise.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-stat-promise.js
+1-1Lines 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) {
Collapse file

‎benchmark/fs/bench-stat.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-stat.js
+1-1Lines 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

Collapse file

‎benchmark/fs/bench-statSync-failure.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-statSync-failure.js
+1-1Lines 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

Collapse file

‎benchmark/fs/bench-statSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/bench-statSync.js
+1-1Lines 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

Collapse file

‎benchmark/fs/read-stream-throughput.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/read-stream-throughput.js
+2-2Lines 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', () => {
Collapse file

‎benchmark/fs/readFileSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/readFileSync.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.