inikep / lzbench

lzbench is an in-memory benchmark of open-source LZ77/LZSS/LZMA compressors
894 stars 182 forks source link

feature: compress/decompress with dictionaries and stream mode #115

Open rainingmaster opened 2 years ago

rainingmaster commented 2 years ago

Hi @inikep, @jinfeihan57. So far compress/decompress with custom dictionary is more and more popular, such as zstd, and the newest brotli has support it.

In new version, we can use a specific dictionary to compress/decompress:

./lzbench -ezlib,5/brotli,2,11/zstd,3,11 -dzstd=zstd_dict test.pdf

So I raise a PR to add dictionary for lzbench, could you help me review it? Thanks!