Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 20 lines (14 sloc) 0.396 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/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
Something went wrong with that request. Please try again.