diff --git a/benchmarks/compress-test.sh b/benchmarks/compress-test.sh index 60372f6..d641814 100755 --- a/benchmarks/compress-test.sh +++ b/benchmarks/compress-test.sh @@ -19,7 +19,7 @@ # https://martin-steigerwald.de/computer/programme/packbench/ # PATH=/usr/local/bin:/usr/bin:/bin -PROGRAMS=${PROGRAMS:-gzip pigz bzip2 pbzip2 xz pxz lz4 lzma brotli zstd pzstd} +PROGRAMS=${PROGRAMS:-gzip pigz bzip2 pbzip2 lbzip2 xz pxz lz4 lzma lzip brotli zstd pzstd pixz} MODES=${MODES:-9c 1c dc} # {1..9}c for compression # dc for decompression _help() { @@ -108,6 +108,16 @@ for m in $MODES; do fi ;; + pxz) + # For some reason pxz defaults to -T1 instead of -T0 + if [ $m = "dc" ]; then + _cmd(){ ${p} -T0 -dc ${FILE}.${p} > /dev/null; } + else + qual=$(echo $m | sed 's/c$//') # Sigh... + _cmd(){ ${p} -T0 -c -${qual} ${FILE} > ${FILE}.${p}; } + fi + ;; + pixz) if [ $m = "dc" ]; then _cmd(){ ${p} -d -i ${FILE}.${p} -o /dev/null; }