benchmark: add trailing commas in benchmark/net

PR-URL: https://github.com/nodejs/node/pull/46439
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel authored and Danielle Adams committed 2023-04-02 21:37:51 -04:00
1 parent 01cf87aca7
commit bd6c828cf3
8 files changed
+16 -17

No files matched your search

-1
View File
@@ -16,7 +16,6 @@ overrides:
- http2/*.js
- misc/*.js
- module/*.js
- net/*.js
- path/*.js
- process/*.js
- url/*.js
+1 -1
View File
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
type: ['utf', 'asc', 'buf'],
dur: [5],
}, {
test: { len: 1024 }
test: { len: 1024 },
});
let chunk;
+1 -1
View File
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
type: ['utf', 'asc', 'buf'],
dur: [5],
}, {
test: { len: 1024 }
test: { len: 1024 },
});
let chunk;
+4 -4
View File
@@ -9,9 +9,9 @@ const bench = common.createBenchmark(main, {
type: ['utf', 'asc', 'buf'],
recvbuflen: [0, 64 * 1024, 1024 * 1024],
recvbufgenfn: ['true', 'false'],
dur: [5]
dur: [5],
}, {
test: { sendchunklen: 256 }
test: { sendchunklen: 256 },
});
let chunk;
@@ -65,8 +65,8 @@ function main({ dur, sendchunklen, type, recvbuflen, recvbufgenfn }) {
buffer,
callback: function(nread, buf) {
received += nread;
}
}
},
},
};
}
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
dur: [5],
}, {
test: { len: 64 },
flags: ['--expose-internals']
flags: ['--expose-internals'],
});
let chunk;
+3 -3
View File
@@ -11,17 +11,17 @@ const util = require('util');
const bench = common.createBenchmark(main, {
len: [102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5]
dur: [5],
}, {
test: { len: 1024 },
flags: [ '--expose-internals', '--no-warnings' ]
flags: [ '--expose-internals', '--no-warnings' ],
});
function main({ dur, len, type }) {
const {
TCP,
TCPConnectWrap,
constants: TCPConstants
constants: TCPConstants,
} = common.binding('tcp_wrap');
const { WriteWrap } = common.binding('stream_wrap');
const PORT = common.PORT;
+3 -3
View File
@@ -11,17 +11,17 @@ const util = require('util');
const bench = common.createBenchmark(main, {
len: [102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5]
dur: [5],
}, {
test: { len: 1024 },
flags: [ '--expose-internals', '--no-warnings' ]
flags: [ '--expose-internals', '--no-warnings' ],
});
function main({ dur, len, type }) {
const {
TCP,
TCPConnectWrap,
constants: TCPConstants
constants: TCPConstants,
} = common.binding('tcp_wrap');
const { WriteWrap } = common.binding('stream_wrap');
const PORT = common.PORT;
+3 -3
View File
@@ -11,17 +11,17 @@ const util = require('util');
const bench = common.createBenchmark(main, {
len: [102400, 1024 * 1024 * 16],
type: ['utf', 'asc', 'buf'],
dur: [5]
dur: [5],
}, {
test: { len: 1024 },
flags: [ '--expose-internals', '--no-warnings' ]
flags: [ '--expose-internals', '--no-warnings' ],
});
function main({ dur, len, type }) {
const {
TCP,
TCPConnectWrap,
constants: TCPConstants
constants: TCPConstants,
} = common.binding('tcp_wrap');
const { WriteWrap } = common.binding('stream_wrap');
const PORT = common.PORT;