GeezerVison is showing github.com — benchmark: add trailing commas in `benchmark/fs` · nodejs/node@f969cc3
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: benchmark/.eslintrc.yaml -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,6 @@ overrides: | 13 | 13 | - buffers/*.js | 14 | 14 | - buffers-fill/*.js | 15 | 15 | - crypto/*.js | 16 | | - - fs/*.js | 17 | 16 | - http/*.js | 18 | 17 | - http2/*.js | 19 | 18 | - misc/*.js | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-opendir.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ const bench = common.createBenchmark(main, { | 8 | 8 | n: [100], | 9 | 9 | dir: [ 'lib', 'test/parallel'], | 10 | 10 | mode: [ 'async', 'sync', 'callback' ], | 11 | | - bufferSize: [ 4, 32, 1024 ] | | 11 | + bufferSize: [ 4, 32, 1024 ], | 12 | 12 | }); | 13 | 13 |
| 14 | 14 | async function main({ n, dir, mode, bufferSize }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-readdir.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ const path = require('path'); | 7 | 7 | const bench = common.createBenchmark(main, { | 8 | 8 | n: [10], | 9 | 9 | dir: [ 'lib', 'test/parallel'], | 10 | | - withFileTypes: ['true', 'false'] | | 10 | + withFileTypes: ['true', 'false'], | 11 | 11 | }); | 12 | 12 |
| 13 | 13 | function main({ n, dir, withFileTypes }) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-readdirSync.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ const path = require('path'); | 7 | 7 | const bench = common.createBenchmark(main, { | 8 | 8 | n: [10], | 9 | 9 | dir: [ 'lib', 'test/parallel'], | 10 | | - withFileTypes: ['true', 'false'] | | 10 | + withFileTypes: ['true', 'false'], | 11 | 11 | }); | 12 | 12 |
| 13 | 13 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-stat-promise.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ const fsPromises = require('fs').promises; | 5 | 5 |
| 6 | 6 | const bench = common.createBenchmark(main, { | 7 | 7 | n: [20e4], | 8 | | - statType: ['fstat', 'lstat', 'stat'] | | 8 | + statType: ['fstat', 'lstat', 'stat'], | 9 | 9 | }); | 10 | 10 |
| 11 | 11 | async function run(n, statType) { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-stat.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ const fs = require('fs'); | 5 | 5 |
| 6 | 6 | const bench = common.createBenchmark(main, { | 7 | 7 | n: [20e4], | 8 | | - statType: ['fstat', 'lstat', 'stat'] | | 8 | + statType: ['fstat', 'lstat', 'stat'], | 9 | 9 | }); | 10 | 10 |
| 11 | 11 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-statSync-failure.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ const path = require('path'); | 6 | 6 |
| 7 | 7 | const bench = common.createBenchmark(main, { | 8 | 8 | n: [1e6], | 9 | | - statSyncType: ['throw', 'noThrow'] | | 9 | + statSyncType: ['throw', 'noThrow'], | 10 | 10 | }); | 11 | 11 |
| 12 | 12 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/bench-statSync.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ const fs = require('fs'); | 5 | 5 |
| 6 | 6 | const bench = common.createBenchmark(main, { | 7 | 7 | n: [1e6], | 8 | | - statSyncType: ['fstatSync', 'lstatSync', 'statSync'] | | 8 | + statSyncType: ['fstatSync', 'lstatSync', 'statSync'], | 9 | 9 | }); | 10 | 10 |
| 11 | 11 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/read-stream-throughput.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, { | 15 | 15 | encodingType: ['buf', 'asc', 'utf'], | 16 | 16 | filesize: [1000 * 1024], | 17 | 17 | highWaterMark: [1024, 4096, 65535, 1024 * 1024], | 18 | | - n: 1024 | | 18 | + n: 1024, | 19 | 19 | }); | 20 | 20 |
| 21 | 21 | function main(conf) { | @@ -72,7 +72,7 @@ function runTest(filesize, highWaterMark, encoding, n) { | 72 | 72 | assert(fs.statSync(filename).size === filesize * n); | 73 | 73 | const rs = fs.createReadStream(filename, { | 74 | 74 | highWaterMark, | 75 | | - encoding | | 75 | + encoding, | 76 | 76 | }); | 77 | 77 |
| 78 | 78 | rs.on('open', () => { | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/fs/readFileSync.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ const common = require('../common.js'); | 4 | 4 | const fs = require('fs'); | 5 | 5 |
| 6 | 6 | const bench = common.createBenchmark(main, { | 7 | | - n: [60e4] | | 7 | + n: [60e4], | 8 | 8 | }); | 9 | 9 |
| 10 | 10 | function main({ n }) { | |
|