Skip to content

Commit bd6c828

Browse files
aduh95danielleadams
authored andcommitted
benchmark: add trailing commas in benchmark/net
PR-URL: #46439 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 01cf87a commit bd6c828

8 files changed

+16
-17
lines changed

benchmark/.eslintrc.yaml

-1
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

benchmark/net/net-c2s.js

+1-1
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;

benchmark/net/net-pipe.js

+1-1
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;

benchmark/net/net-s2c.js

+4-4
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

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

+1-1
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;

benchmark/net/tcp-raw-c2s.js

+3-3
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;

benchmark/net/tcp-raw-pipe.js

+3-3
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;

benchmark/net/tcp-raw-s2c.js

+3-3
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)