Added pako inflate benchmarks

This commit is contained in:
Vitaly Puzrin 2014-03-12 01:10:54 +04:00
parent 5f9b67413b
commit 7701d13f4b
2 changed files with 19 additions and 0 deletions

View file

@ -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;
}

View file

@ -0,0 +1,8 @@
'use strict'
var pako = require('../../../index.js');
exports.run = function(data) {
return pako.inflate(data.deflateTyped, {
});
}