{"ScriptPreparationCode":"var enc = new TextEncoder();\r\nvar a = new Uint8Array([100 * 1024]);\r\nfor (var i; i \u003C 100 * 1024; i\u002B\u002B)\r\n a[i] = Math.floor(Math.random() * 256)\r\nvar b = enc.encode(\u0027The quick brown fox jumps over the lazy dog\u0027)\r\n//var ca = pako.deflate(a)\r\n//var cb = pako.deflate(b)\r\n\r\nvar deflate = new Zlib.RawDeflate(a);\r\nvar ca = deflate.compress();\r\n\r\nvar deflate = new Zlib.RawDeflate(b);\r\nvar cb = deflate.compress();\r\n\r\nconsole.log(cb)\r\n","TestCases":[{"Name":"inflate pako a","Code":"pako.inflateRaw(ca)","IsDeferred":false},{"Name":"inflate pako b","Code":"pako.inflateRaw(cb)","IsDeferred":false},{"Name":"deflate pako a","Code":"pako.deflateRaw(a)","IsDeferred":false},{"Name":"deflate pako b","Code":"pako.deflateRaw(b)","IsDeferred":false},{"Name":"unzip fflate a","Code":"fflate.decompressSync(ca);","IsDeferred":false},{"Name":"unzip fflate b","Code":"fflate.decompressSync(cb);","IsDeferred":false},{"Name":"zip fflate a","Code":"fflate.gzipSync(a)","IsDeferred":false},{"Name":"zip fflate b","Code":"fflate.gzipSync(b)","IsDeferred":false},{"Name":"zlibjs Raw Deflate compress","Code":"var deflate = new Zlib.RawDeflate(a);\r\nvar compressed = deflate.compress();","IsDeferred":false},{"Name":"zlibjs Raw Deflate decompress","Code":"// compressed = Array.\u003Cnumber\u003E or Uint8Array\r\nvar inflate = new Zlib.RawInflate(ca);\r\nvar plain = inflate.decompress();","IsDeferred":false}]}