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
2023-02-03 11:43:15 +01:00
committed by GitHub
parent 83cc1e2c8b
commit fd4869b3f3
8 changed files with 16 additions and 17 deletions

View File

@@ -16,7 +16,6 @@ overrides:
- http2/*.js
- misc/*.js
- module/*.js
- net/*.js
- path/*.js
- process/*.js
- url/*.js

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;

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;

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;
}
}
},
},
};
}

View File

@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
dur: [5],
}, {
test: { len: 64 },
flags: ['--expose-internals']
flags: ['--expose-internals'],
});
let chunk;

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;

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;

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;