diff --git a/benchmark/implementations/inflate-pako-untyped/index.js b/benchmark/implementations/inflate-pako-untyped/index.js new file mode 100644 index 0000000..6d5eb5f --- /dev/null +++ b/benchmark/implementations/inflate-pako-untyped/index.js @@ -0,0 +1,11 @@ +'use strict' + +var pako = require('../../../'); +var utils = require('../../../lib/zlib/utils'); + +exports.run = function(data, level) { + utils.forceUntyped = true; + pako.inflate(data.deflateTyped, { + }); + utils.forceUntyped = false; +} diff --git a/benchmark/implementations/inflate-pako/index.js b/benchmark/implementations/inflate-pako/index.js new file mode 100644 index 0000000..ca8e2f8 --- /dev/null +++ b/benchmark/implementations/inflate-pako/index.js @@ -0,0 +1,8 @@ +'use strict' + +var pako = require('../../../index.js'); + +exports.run = function(data) { + return pako.inflate(data.deflateTyped, { + }); +}