benchmark: remove problematic tls params

These very small values can cause crashes/exceptions to occur on some
systems because most time is spent in V8 GC or in parts of node core
that are not being tested (e.g. streams).

PR-URL: https://github.com/nodejs/node/pull/31816
Reviewed-By: James M Snell <jasnell@gmail.com>
pull/31816/head
Brian White 2020-02-16 03:50:01 -05:00
parent c3c64a1034
commit 5cc0754090
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ const common = require('../common.js');
const bench = common.createBenchmark(main, {
dur: [5],
securing: ['SecurePair', 'TLSSocket', 'clear'],
size: [2, 100, 1024, 1024 * 1024]
size: [100, 1024, 1024 * 1024]
});
const fixtures = require('../../test/common/fixtures');

View File

@ -3,7 +3,7 @@ const common = require('../common.js');
const bench = common.createBenchmark(main, {
dur: [5],
type: ['buf', 'asc', 'utf'],
size: [2, 1024, 1024 * 1024, 4 * 1024 * 1024, 16 * 1024 * 1024]
size: [100, 1024, 1024 * 1024, 4 * 1024 * 1024, 16 * 1024 * 1024]
});
const fixtures = require('../../test/common/fixtures');

View File

@ -19,9 +19,9 @@ runBenchmark('tls',
'concurrency=1',
'dur=0.1',
'n=1',
'size=2',
'size=1024',
'securing=SecurePair',
'type=asc'
'type=buf'
],
{
NODEJS_BENCHMARK_ZERO_ALLOWED: 1,