| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| 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 | |
| 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 }) { | |
| 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 }) { | |
| 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 | ||
| 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) { | |
| 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 | ||
| 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 | ||
| 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 | ||
| 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', () => { | |
| 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 }) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments