git地址:https://github.com/google/brotli
$ mkdir out && cd out
$ ../configure-cmake
$ make
$ make test
$ make install
方式二:CMake
$ mkdir out && cd out
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
$ cmake --build . --config Release --target install
压缩:压缩等级从0-11
time ./brotli -q 0 Data_100M.txt -o Data_100M.txt.C
解压:
time ./brotli -d Data_100M.txt.C -o Data_100M.tmp.txt