diff options
Diffstat (limited to 'benchmark/zlib/deflate.js')
-rw-r--r-- | benchmark/zlib/deflate.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmark/zlib/deflate.js b/benchmark/zlib/deflate.js index 00993b6446..5e86d65980 100644 --- a/benchmark/zlib/deflate.js +++ b/benchmark/zlib/deflate.js @@ -8,10 +8,8 @@ const bench = common.createBenchmark(main, { n: [4e5] }); -function main(conf) { - const n = +conf.n; - const method = conf.method; - const chunk = Buffer.alloc(+conf.inputLen, 'a'); +function main({ n, method, inputLen }) { + const chunk = Buffer.alloc(inputLen, 'a'); var i = 0; switch (method) { |