mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -16,7 +16,6 @@ overrides:
|
||||
- http2/*.js
|
||||
- misc/*.js
|
||||
- module/*.js
|
||||
- net/*.js
|
||||
- path/*.js
|
||||
- process/*.js
|
||||
- url/*.js
|
||||
|
||||
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
|
||||
type: ['utf', 'asc', 'buf'],
|
||||
dur: [5],
|
||||
}, {
|
||||
test: { len: 1024 }
|
||||
test: { len: 1024 },
|
||||
});
|
||||
|
||||
let chunk;
|
||||
|
||||
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
|
||||
type: ['utf', 'asc', 'buf'],
|
||||
dur: [5],
|
||||
}, {
|
||||
test: { len: 1024 }
|
||||
test: { len: 1024 },
|
||||
});
|
||||
|
||||
let chunk;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user