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 7760d40

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

File tree

Expand file treeCollapse file tree

8 files changed

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

8 files changed

+16
-17
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
@@ -16,7 +16,6 @@ overrides:
1616
- http2/*.js
1717
- misc/*.js
1818
- module/*.js
19-
- net/*.js
2019
- path/*.js
2120
- process/*.js
2221
- url/*.js
Collapse file

‎benchmark/net/net-c2s.js‎

Copy file name to clipboardExpand all lines: benchmark/net/net-c2s.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
type: ['utf', 'asc', 'buf'],
1111
dur: [5],
1212
}, {
13-
test: { len: 1024 }
13+
test: { len: 1024 },
1414
});
1515

1616
let chunk;
Collapse file

‎benchmark/net/net-pipe.js‎

Copy file name to clipboardExpand all lines: benchmark/net/net-pipe.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
type: ['utf', 'asc', 'buf'],
1111
dur: [5],
1212
}, {
13-
test: { len: 1024 }
13+
test: { len: 1024 },
1414
});
1515

1616
let chunk;
Collapse file

‎benchmark/net/net-s2c.js‎

Copy file name to clipboardExpand all lines: benchmark/net/net-s2c.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const bench = common.createBenchmark(main, {
99
type: ['utf', 'asc', 'buf'],
1010
recvbuflen: [0, 64 * 1024, 1024 * 1024],
1111
recvbufgenfn: ['true', 'false'],
12-
dur: [5]
12+
dur: [5],
1313
}, {
14-
test: { sendchunklen: 256 }
14+
test: { sendchunklen: 256 },
1515
});
1616

1717
let chunk;
@@ -65,8 +65,8 @@ function main({ dur, sendchunklen, type, recvbuflen, recvbufgenfn }) {
6565
buffer,
6666
callback: function(nread, buf) {
6767
received += nread;
68-
}
69-
}
68+
},
69+
},
7070
};
7171
}
7272

Collapse file

‎benchmark/net/net-wrap-js-stream-passthrough.js‎

Copy file name to clipboardExpand all lines: benchmark/net/net-wrap-js-stream-passthrough.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
dur: [5],
1111
}, {
1212
test: { len: 64 },
13-
flags: ['--expose-internals']
13+
flags: ['--expose-internals'],
1414
});
1515

1616
let chunk;
Collapse file

‎benchmark/net/tcp-raw-c2s.js‎

Copy file name to clipboardExpand all lines: benchmark/net/tcp-raw-c2s.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ const util = require('util');
1111
const bench = common.createBenchmark(main, {
1212
len: [102400, 1024 * 1024 * 16],
1313
type: ['utf', 'asc', 'buf'],
14-
dur: [5]
14+
dur: [5],
1515
}, {
1616
test: { len: 1024 },
17-
flags: [ '--expose-internals', '--no-warnings' ]
17+
flags: [ '--expose-internals', '--no-warnings' ],
1818
});
1919

2020
function main({ dur, len, type }) {
2121
const {
2222
TCP,
2323
TCPConnectWrap,
24-
constants: TCPConstants
24+
constants: TCPConstants,
2525
} = common.binding('tcp_wrap');
2626
const { WriteWrap } = common.binding('stream_wrap');
2727
const PORT = common.PORT;
Collapse file

‎benchmark/net/tcp-raw-pipe.js‎

Copy file name to clipboardExpand all lines: benchmark/net/tcp-raw-pipe.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ const util = require('util');
1111
const bench = common.createBenchmark(main, {
1212
len: [102400, 1024 * 1024 * 16],
1313
type: ['utf', 'asc', 'buf'],
14-
dur: [5]
14+
dur: [5],
1515
}, {
1616
test: { len: 1024 },
17-
flags: [ '--expose-internals', '--no-warnings' ]
17+
flags: [ '--expose-internals', '--no-warnings' ],
1818
});
1919

2020
function main({ dur, len, type }) {
2121
const {
2222
TCP,
2323
TCPConnectWrap,
24-
constants: TCPConstants
24+
constants: TCPConstants,
2525
} = common.binding('tcp_wrap');
2626
const { WriteWrap } = common.binding('stream_wrap');
2727
const PORT = common.PORT;
Collapse file

‎benchmark/net/tcp-raw-s2c.js‎

Copy file name to clipboardExpand all lines: benchmark/net/tcp-raw-s2c.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ const util = require('util');
1111
const bench = common.createBenchmark(main, {
1212
len: [102400, 1024 * 1024 * 16],
1313
type: ['utf', 'asc', 'buf'],
14-
dur: [5]
14+
dur: [5],
1515
}, {
1616
test: { len: 1024 },
17-
flags: [ '--expose-internals', '--no-warnings' ]
17+
flags: [ '--expose-internals', '--no-warnings' ],
1818
});
1919

2020
function main({ dur, len, type }) {
2121
const {
2222
TCP,
2323
TCPConnectWrap,
24-
constants: TCPConstants
24+
constants: TCPConstants,
2525
} = common.binding('tcp_wrap');
2626
const { WriteWrap } = common.binding('stream_wrap');
2727
const PORT = common.PORT;

0 commit comments

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