mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
benchmark: improve http2 benchmark configs
PR-URL: https://github.com/nodejs/node/pull/16239 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
c30f107103
commit
82b1660b1d
@ -6,7 +6,8 @@ const PORT = common.PORT;
|
||||
const bench = common.createBenchmark(main, {
|
||||
n: [1e3],
|
||||
nheaders: [0, 10, 100, 1000],
|
||||
}, { flags: ['--no-warnings'] });
|
||||
benchmarker: ['h2load']
|
||||
}, { flags: ['--no-warnings', '--expose-http2'] });
|
||||
|
||||
function main(conf) {
|
||||
const n = +conf.n;
|
||||
|
@ -10,8 +10,9 @@ const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
|
||||
const bench = common.createBenchmark(main, {
|
||||
requests: [100, 1000, 10000, 100000, 1000000],
|
||||
streams: [100, 200, 1000],
|
||||
clients: [1, 2]
|
||||
}, { flags: ['--no-warnings'] });
|
||||
clients: [1, 2],
|
||||
benchmarker: ['h2load']
|
||||
}, { flags: ['--no-warnings', '--expose-http2'] });
|
||||
|
||||
function main(conf) {
|
||||
|
||||
|
@ -11,8 +11,9 @@ const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html');
|
||||
const bench = common.createBenchmark(main, {
|
||||
requests: [100, 1000, 10000, 100000],
|
||||
streams: [100, 200, 1000],
|
||||
clients: [1, 2]
|
||||
}, { flags: ['--no-warnings'] });
|
||||
clients: [1, 2],
|
||||
benchmarker: ['h2load']
|
||||
}, { flags: ['--no-warnings', '--expose-http2'] });
|
||||
|
||||
function main(conf) {
|
||||
const n = +conf.requests;
|
||||
|
@ -6,8 +6,9 @@ const PORT = common.PORT;
|
||||
const bench = common.createBenchmark(main, {
|
||||
streams: [100, 200, 1000],
|
||||
length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024],
|
||||
size: [100000]
|
||||
}, { flags: ['--no-warnings'] });
|
||||
size: [100000],
|
||||
benchmarker: ['h2load']
|
||||
}, { flags: ['--no-warnings', '--expose-http2'] });
|
||||
|
||||
function main(conf) {
|
||||
const m = +conf.streams;
|
||||
|
Loading…
Reference in New Issue
Block a user