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