| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,11 +5,29 @@ env: | |||
| 5 | 5 | es6: true | |
| 6 | 6 | ||
| 7 | 7 | rules: | |
| 8 | - comma-dangle: [error, { | ||
| 9 | - arrays: always-multiline, | ||
| 10 | - exports: always-multiline, | ||
| 11 | - functions: only-multiline, | ||
| 12 | - imports: always-multiline, | ||
| 13 | - objects: only-multiline, | ||
| 14 | - }] | ||
| 15 | 8 | prefer-arrow-callback: error | |
| 9 | + | ||
| 10 | + overrides: | ||
| 11 | + - files: | ||
| 12 | + - async_hooks/*.js | ||
| 13 | + - buffers/*.js | ||
| 14 | + - buffers-fill/*.js | ||
| 15 | + - crypto/*.js | ||
| 16 | + - fs/*.js | ||
| 17 | + - http/*.js | ||
| 18 | + - http2/*.js | ||
| 19 | + - misc/*.js | ||
| 20 | + - module/*.js | ||
| 21 | + - net/*.js | ||
| 22 | + - path/*.js | ||
| 23 | + - process/*.js | ||
| 24 | + - url/*.js | ||
| 25 | + - util/*.js | ||
| 26 | + rules: | ||
| 27 | + comma-dangle: [error, { | ||
| 28 | + arrays: always-multiline, | ||
| 29 | + exports: always-multiline, | ||
| 30 | + functions: only-multiline, | ||
| 31 | + imports: always-multiline, | ||
| 32 | + objects: only-multiline, | ||
| 33 | + }] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,7 +106,7 @@ class TestDoubleBenchmarker { | |||
| 106 | 106 | const scheme = options.scheme || 'http'; | |
| 107 | 107 | const env = { | |
| 108 | 108 | test_url: `${scheme}://127.0.0.1:${options.port}${options.path}`, | |
| 109 | - ...process.env | ||
| 109 | + ...process.env, | ||
| 110 | 110 | }; | |
| 111 | 111 | ||
| 112 | 112 | const child = child_process.fork(this.executable, | |
@@ -203,7 +203,7 @@ exports.run = function(options, callback) { | |||
| 203 | 203 | connections: 100, | |
| 204 | 204 | duration: 5, | |
| 205 | 205 | benchmarker: exports.default_http_benchmarker, | |
| 206 | - ...options | ||
| 206 | + ...options, | ||
| 207 | 207 | }; | |
| 208 | 208 | if (!options.benchmarker) { | |
| 209 | 209 | callback(new Error('Could not locate required http benchmarker. See ' + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ function main({ n, len, method, strict }) { | |||
| 46 | 46 | } | |
| 47 | 47 | case 'deepEqual_mixed': { | |
| 48 | 48 | const values = array.map( | |
| 49 | - (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123] | ||
| 49 | + (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123], | ||
| 50 | 50 | ); | |
| 51 | 51 | benchmark(strict ? deepStrictEqual : deepEqual, n, values); | |
| 52 | 52 | break; | |
@@ -67,7 +67,7 @@ function main({ n, len, method, strict }) { | |||
| 67 | 67 | } | |
| 68 | 68 | case 'notDeepEqual_mixed': { | |
| 69 | 69 | const values = array.map( | |
| 70 | - (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123] | ||
| 70 | + (_, i) => [i % 2 ? [`str_${i}`, 1] : `str_${i}`, 123], | ||
| 71 | 71 | ); | |
| 72 | 72 | const values2 = values.slice(0); | |
| 73 | 73 | values2[0] = ['w00t', 123]; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ const { Blob } = require('buffer'); | |||
| 5 | 5 | const bench = common.createBenchmark(main, { | |
| 6 | 6 | bytes: [128, 1024, 1024 ** 2], | |
| 7 | 7 | n: [1e6], | |
| 8 | - operation: ['text', 'arrayBuffer'] | ||
| 8 | + operation: ['text', 'arrayBuffer'], | ||
| 9 | 9 | }); | |
| 10 | 10 | ||
| 11 | 11 | async function run(n, bytes, operation) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ const { File } = require('buffer'); | |||
| 5 | 5 | const bench = common.createBenchmark(main, { | |
| 6 | 6 | bytes: [128, 1024, 1024 ** 2], | |
| 7 | 7 | n: [1e6], | |
| 8 | - operation: ['text', 'arrayBuffer'] | ||
| 8 | + operation: ['text', 'arrayBuffer'], | ||
| 9 | 9 | }); | |
| 10 | 10 | ||
| 11 | 11 | const options = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ if (!isWindows) messagesLength.push(32768); | |||
| 9 | 9 | ||
| 10 | 10 | const bench = common.createBenchmark(childProcessExecStdout, { | |
| 11 | 11 | len: messagesLength, | |
| 12 | - dur: [5] | ||
| 12 | + dur: [5], | ||
| 13 | 13 | }); | |
| 14 | 14 | ||
| 15 | 15 | function childProcessExecStdout({ dur, len }) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ if (process.argv[2] === 'child') { | |||
| 15 | 15 | 64, 256, 1024, 4096, 16384, 65536, | |
| 16 | 16 | 65536 << 4, 65536 << 6 - 1, | |
| 17 | 17 | ], | |
| 18 | - dur: [5] | ||
| 18 | + dur: [5], | ||
| 19 | 19 | }); | |
| 20 | 20 | const spawn = require('child_process').spawn; | |
| 21 | 21 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ if (os.platform() !== 'win32') | |||
| 14 | 14 | ||
| 15 | 15 | const bench = common.createBenchmark(main, { | |
| 16 | 16 | len: messagesLength, | |
| 17 | - dur: [5] | ||
| 17 | + dur: [5], | ||
| 18 | 18 | }); | |
| 19 | 19 | ||
| 20 | 20 | function main({ dur, len }) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common.js'); | |
| 3 | 3 | const bench = common.createBenchmark(main, { | |
| 4 | - n: [1000] | ||
| 4 | + n: [1000], | ||
| 5 | 5 | }); | |
| 6 | 6 | ||
| 7 | 7 | const spawn = require('child_process').spawn; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,15 +8,15 @@ if (cluster.isMaster) { | |||
| 8 | 8 | payload: ['string', 'object'], | |
| 9 | 9 | sendsPerBroadcast: [1, 10], | |
| 10 | 10 | serialization: ['json', 'advanced'], | |
| 11 | - n: [1e5] | ||
| 11 | + n: [1e5], | ||
| 12 | 12 | }); | |
| 13 | 13 | ||
| 14 | 14 | function main({ | |
| 15 | 15 | n, | |
| 16 | 16 | workers, | |
| 17 | 17 | sendsPerBroadcast, | |
| 18 | 18 | payload, | |
| 19 | - serialization | ||
| 19 | + serialization, | ||
| 20 | 20 | }) { | |
| 21 | 21 | const expectedPerBroadcast = sendsPerBroadcast * workers; | |
| 22 | 22 | let readies = 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments