mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-05 11:20:58 +01:00
updated profiling stub
This commit is contained in:
parent
c6f445a2e2
commit
86c7fb99af
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,8 @@ var pako = require('../index.js');
|
||||||
|
|
||||||
var data = new Uint8Array(fs.readFileSync(__dirname +'/samples/lorem_1mb.txt'));
|
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++) {
|
for (var i=0; i<200; i++) {
|
||||||
pako.deflate(data, { level: 6 });
|
pako.inflate(deflated);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue