HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/fflate@0.8.0/umd/index.min.js"></script>
2
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.1.0/pako.min.js"></script>
Script Preparation code:
 
var enc = new TextEncoder();
var a = new Uint8Array([100 * 1024]);
for (var i; i < 100 * 1024; i++)
    a[i] = Math.floor(Math.random() * 256)
var b = enc.encode('The quick brown fox jumps over the lazy dog '.repeat(50))
var ca = pako.gzip(a)
var cb = pako.gzip(b)
console.log(cb)
Tests:
  • zip pako a

     
    pako.deflate(a)
  • zip pako b

     
    pako.deflate(b)
  • zip fflate a

     
    fflate.gzipSync(a)
  • zip fflate b

     
    fflate.gzipSync(b)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    zip pako a
    zip pako b
    zip fflate a
    zip fflate b

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
zip pako a 18453.5 Ops/sec
zip pako b 12945.9 Ops/sec
zip fflate a 47074.4 Ops/sec
zip fflate b 20238.5 Ops/sec