2010-01-23 05:23:31 +00:00
|
|
|
#!/bin/bash
|
2010-01-13 02:21:39 +00:00
|
|
|
|
2012-10-13 11:11:16 +00:00
|
|
|
tarball=$1
|
|
|
|
sample=$2
|
2010-01-13 02:21:39 +00:00
|
|
|
|
|
|
|
echo XZ
|
2012-10-13 11:11:16 +00:00
|
|
|
time xz -c < "$tarball" > test.txz
|
|
|
|
time xz -cd < test.txz | tar xO "$sample" | md5sum
|
2010-01-13 02:21:39 +00:00
|
|
|
|
|
|
|
echo; echo; echo PIXZ
|
2012-10-13 11:11:16 +00:00
|
|
|
time ./pixz < "$tarball" > test.tpxz
|
|
|
|
time ./pixz -x "$sample" < test.tpxz | tar xO "$sample" | md5sum
|
2010-01-13 02:21:39 +00:00
|
|
|
|
|
|
|
echo; echo; echo CROSS
|
2012-10-13 11:11:16 +00:00
|
|
|
xz -cd < test.tpxz | tar xO "$sample" | md5sum
|
2010-01-13 02:21:39 +00:00
|
|
|
|
|
|
|
echo; echo
|
2012-10-13 11:11:16 +00:00
|
|
|
du -sh "$tarball" test.tpxz test.txz
|
|
|
|
rm test.tpxz test.txz
|