mirror of https://github.com/vasi/pixz
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
396 B
Bash
20 lines
396 B
Bash
#!/bin/bash
|
|
|
|
tarball=$1
|
|
sample=$2
|
|
|
|
echo XZ
|
|
time xz -c < "$tarball" > test.txz
|
|
time xz -cd < test.txz | tar xO "$sample" | md5sum
|
|
|
|
echo; echo; echo PIXZ
|
|
time ./pixz < "$tarball" > test.tpxz
|
|
time ./pixz -x "$sample" < test.tpxz | tar xO "$sample" | md5sum
|
|
|
|
echo; echo; echo CROSS
|
|
xz -cd < test.tpxz | tar xO "$sample" | md5sum
|
|
|
|
echo; echo
|
|
du -sh "$tarball" test.tpxz test.txz
|
|
rm test.tpxz test.txz
|