101arrowz / fzstd

High performance Zstandard decompression in a pure JavaScript, 8kB package
MIT License
218 stars 11 forks source link

docs: comparison to fflate #11

Closed bdon closed 1 year ago

bdon commented 1 year ago

Hi, thanks for the library and fflate, I've been fflate in my open source project with great success.

Is there a good head-to-head benchmark for how the single-threaded decompression time compares between fflate and fzstd for the same compressed sample data? If you think it would be a worthy addition to the docs, I can find sample datasets and attempt to write up a comparison.

101arrowz commented 1 year ago

Empirically fzstd is a bit slower than fflate. It's surprising but I think it's mainly because I based this implementation off of a relatively basic C implementation rather than optimizing it myself. If you would like to create actual performance comparison, I'd be happy to include it in the docs here.

bdon commented 1 year ago

Hi @101arrowz - I'm not confident I can come up with a representative benchmark that would show the performance difference between fzstd/fflate effectively. For now that is very useful information, so I'm going to stick with fflate instead - thanks for the great library!