mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-10 22:00:58 +01:00
Added profiling test file
This commit is contained in:
parent
be9d4902bd
commit
c19d9ce8aa
1 changed files with 11 additions and 0 deletions
11
benchmark/profile.js
Normal file
11
benchmark/profile.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var fs = require('fs');
|
||||||
|
var pako = require('../index.js');
|
||||||
|
|
||||||
|
var data = new Uint8Array(fs.readFileSync(__dirname +'/samples/lorem_1mb.txt'));
|
||||||
|
|
||||||
|
|
||||||
|
for (var i=0; i<50; i++) {
|
||||||
|
pako.deflate(data, { level: 0 });
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue