mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test,benchmark: fix test-benchmark-zlib
PR-URL: https://github.com/nodejs/node/pull/31538 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
d65e6a5017
commit
5cf789e554
@ -9,6 +9,8 @@ const bench = common.createBenchmark(main, {
|
||||
});
|
||||
|
||||
function main({ n, method, inputLen }) {
|
||||
// Default method value for testing.
|
||||
method = method || 'deflate';
|
||||
const chunk = Buffer.alloc(inputLen, 'a');
|
||||
|
||||
var i = 0;
|
||||
|
@ -9,6 +9,8 @@ const bench = common.createBenchmark(main, {
|
||||
});
|
||||
|
||||
function main({ n, method, inputLen }) {
|
||||
// Default method value for tests.
|
||||
method = method || 'inflate';
|
||||
const chunk = zlib.deflateSync(Buffer.alloc(inputLen, 'a'));
|
||||
|
||||
let i = 0;
|
||||
|
@ -10,7 +10,7 @@ runBenchmark('zlib',
|
||||
'chunkLen=1024',
|
||||
'duration=0.001',
|
||||
'inputLen=1024',
|
||||
'method=deflate',
|
||||
'method=',
|
||||
'n=1',
|
||||
'options=true',
|
||||
'type=Deflate',
|
||||
|
Loading…
Reference in New Issue
Block a user