Skip to content

Commit

Permalink
compress-test.sh: added lbzip2, lzip, pixz; special case for pxz
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kujau <[email protected]>
  • Loading branch information
ckujau committed Oct 24, 2019
1 parent 76bba1b commit ac19450
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion benchmarks/compress-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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; }
Expand Down

0 comments on commit ac19450

Please sign in to comment.