mirror of
https://github.com/vasi/pixz
synced 2024-10-30 15:21:41 +00:00
20 lines
396 B
Bash
Executable File
20 lines
396 B
Bash
Executable File
#!/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
|