From 86c7fb99af205962ad48367895da14ff1bd80d5e Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Wed, 12 Mar 2014 14:24:07 +0400 Subject: [PATCH] updated profiling stub --- benchmark/profile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }