diff --git a/benchmark/profile.js b/benchmark/profile.js index 11b28b5..977d034 100644 --- a/benchmark/profile.js +++ b/benchmark/profile.js @@ -5,7 +5,8 @@ var pako = require('../index.js'); var data = new Uint8Array(fs.readFileSync(__dirname +'/samples/lorem_1mb.txt')); +var deflated = pako.deflate(data, { level: 6 }); -for (var i=0; i<50; i++) { - pako.deflate(data, { level: 6 }); +for (var i=0; i<200; i++) { + pako.inflate(deflated); }