Lecrapouille / zipper

[Lib][Version 2.1.0][Functional] C++ wrapper around minizip compression library
MIT License
66 stars 13 forks source link

Benchmark: optimize unzip #3

Open Lecrapouille opened 2 years ago

Lecrapouille commented 2 years ago

Unzip should be optimized.

Benchmark from https://github.com/sebastiandev/zipper/issues/120

Zipper lib:
Zip "The Expanse S4":    206947.200 ms => 3 Minutes 26 Seconds (=-) / 1.2
Unzip "The Expanse S4":  116280.597 ms => 1 Minutes 56 Seconds (--) / 3.4
Zip hy_yj_zg_sc:          16780.517 ms => 16 Seconds           (==) * 1.1
Unzip hy_yj_zg_sc:        94578.933 ms => 1 Minutes 34 Seconds (--) / 8.2

Linux zip tool:
Zip "The Expanse S4":    171211.721 ms => 2 Minutes 51 Seconds (=+)
Unzip "The Expanse S4":   33556.513 ms => 33 Seconds           (++)
Zip hy_yj_zg_sc:          18668.122 ms => 18 Seconds           (==)
Unzip hy_yj_zg_sc:        11414.059 ms => 11 Seconds           (++)