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 8b88d60

Browse filesBrowse files
aduh95MylesBorins
authored andcommitted
benchmark: add trailing commas in benchmark/util
PR-URL: #46438 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 51c6c61 commit 8b88d60
Copy full SHA for 8b88d60

File tree

Expand file treeCollapse file tree

10 files changed

+17
-18
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

10 files changed

+17
-18
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
@@ -20,7 +20,6 @@ overrides:
2020
- path/*.js
2121
- process/*.js
2222
- url/*.js
23-
- util/*.js
2423
rules:
2524
comma-dangle: [error, {
2625
arrays: always-multiline,
Collapse file

‎benchmark/util/format.js‎

Copy file name to clipboardExpand all lines: benchmark/util/format.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const inputs = {
1919

2020
const bench = common.createBenchmark(main, {
2121
n: [1e5],
22-
type: Object.keys(inputs)
22+
type: Object.keys(inputs),
2323
});
2424

2525
function main({ n, type }) {
Collapse file

‎benchmark/util/inspect-array.js‎

Copy file name to clipboardExpand all lines: benchmark/util/inspect-array.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
1111
'sparseArray',
1212
'mixedArray',
1313
'denseArray_showHidden',
14-
]
14+
],
1515
});
1616

1717
function main({ n, len, type }) {
Collapse file

‎benchmark/util/inspect-proxy.js‎

Copy file name to clipboardExpand all lines: benchmark/util/inspect-proxy.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('../common.js');
66
const bench = common.createBenchmark(main, {
77
n: [1e5],
88
showProxy: [0, 1],
9-
isProxy: [0, 1]
9+
isProxy: [0, 1],
1010
});
1111

1212
function main({ n, showProxy, isProxy }) {
Collapse file

‎benchmark/util/inspect.js‎

Copy file name to clipboardExpand all lines: benchmark/util/inspect.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('../common.js');
66
const opts = {
77
showHidden: { showHidden: true },
88
colors: { colors: true },
9-
none: undefined
9+
none: undefined,
1010
};
1111
const bench = common.createBenchmark(main, {
1212
n: [2e4],
@@ -25,7 +25,7 @@ const bench = common.createBenchmark(main, {
2525
'TypedArray_extra',
2626
'Number',
2727
],
28-
option: Object.keys(opts)
28+
option: Object.keys(opts),
2929
});
3030

3131
function benchmark(n, obj, options) {
Collapse file

‎benchmark/util/normalize-encoding.js‎

Copy file name to clipboardExpand all lines: benchmark/util/normalize-encoding.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const groupedInputs = {
99
group_upper: ['UTF-8', 'UTF8', 'UCS2',
1010
'UTF16LE', 'BASE64', 'UCS2'],
1111
group_uncommon: ['foo'],
12-
group_misc: ['', 'utf16le', 'hex', 'HEX', 'BINARY']
12+
group_misc: ['', 'utf16le', 'hex', 'HEX', 'BINARY'],
1313
};
1414

1515
const inputs = [
@@ -21,9 +21,9 @@ const inputs = [
2121

2222
const bench = common.createBenchmark(main, {
2323
input: inputs.concat(Object.keys(groupedInputs)),
24-
n: [1e5]
24+
n: [1e5],
2525
}, {
26-
flags: '--expose-internals'
26+
flags: '--expose-internals',
2727
});
2828

2929
function getInput(input) {
Collapse file

‎benchmark/util/priority-queue.js‎

Copy file name to clipboardExpand all lines: benchmark/util/priority-queue.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const common = require('../common');
44

55
const bench = common.createBenchmark(main, {
6-
n: [1e5]
6+
n: [1e5],
77
}, { flags: ['--expose-internals'] });
88

99
function main({ n, type }) {
Collapse file

‎benchmark/util/text-decoder.js‎

Copy file name to clipboardExpand all lines: benchmark/util/text-decoder.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
fatal: [0, 1],
99
len: [256, 1024 * 16, 1024 * 512],
1010
n: [1e2],
11-
type: ['SharedArrayBuffer', 'ArrayBuffer', 'Buffer']
11+
type: ['SharedArrayBuffer', 'ArrayBuffer', 'Buffer'],
1212
});
1313

1414
function main({ encoding, len, n, ignoreBOM, type, fatal }) {
Collapse file

‎benchmark/util/text-encoder.js‎

Copy file name to clipboardExpand all lines: benchmark/util/text-encoder.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
66
len: [16, 32, 256, 1024, 1024 * 32],
77
n: [1e4],
88
type: ['one-byte-string', 'two-byte-string', 'ascii'],
9-
op: ['encode', 'encodeInto']
9+
op: ['encode', 'encodeInto'],
1010
});
1111

1212
function main({ n, op, len, type }) {
Collapse file

‎benchmark/util/type-check.js‎

Copy file name to clipboardExpand all lines: benchmark/util/type-check.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ const args = {
1111
ArrayBufferView: {
1212
'true': dataView,
1313
'false-primitive': true,
14-
'false-object': arrayBuffer
14+
'false-object': arrayBuffer,
1515
},
1616
TypedArray: {
1717
'true': int32Array,
1818
'false-primitive': true,
19-
'false-object': arrayBuffer
19+
'false-object': arrayBuffer,
2020
},
2121
Uint8Array: {
2222
'true': uint8Array,
2323
'false-primitive': true,
24-
'false-object': int32Array
25-
}
24+
'false-object': int32Array,
25+
},
2626
};
2727

2828
const bench = common.createBenchmark(main, {
2929
type: Object.keys(args),
3030
version: ['native', 'js'],
3131
argument: ['true', 'false-primitive', 'false-object'],
32-
n: [1e5]
32+
n: [1e5],
3333
}, {
34-
flags: ['--expose-internals', '--no-warnings']
34+
flags: ['--expose-internals', '--no-warnings'],
3535
});
3636

3737
function main({ type, argument, version, n }) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.