Difference between revisions of "Software: GZIP vs. BZIP2 vs. XZ - performance"
From Luky-Wiki
Lukas Dzunko (talk | contribs) (Created page with ".") |
Lukas Dzunko (talk | contribs) |
||
Line 1: | Line 1: | ||
− | . | + | == Input == |
+ | For test i selected following files: | ||
+ | <pre> | ||
+ | * DVD.iso | ||
+ | * fs.bin | ||
+ | * linux.tar | ||
+ | * random.bin | ||
+ | * zero.bin | ||
+ | </pre> | ||
+ | <pre> | ||
+ | for a in * | ||
+ | do | ||
+ | for b in 1 6 9 | ||
+ | do | ||
+ | cat ${a} | gzip -${b} > ${a}.${b}.gz | ||
+ | cat ${a} | bzip2 -${b} > ${a}.${b}.bz2 | ||
+ | cat ${a} | xz -${b} > ${a}.${b}.xz | ||
+ | done | ||
+ | done | ||
+ | </pre> |
Revision as of 14:20, 26 November 2013
Input
For test i selected following files:
* DVD.iso * fs.bin * linux.tar * random.bin * zero.bin
for a in * do for b in 1 6 9 do cat ${a} | gzip -${b} > ${a}.${b}.gz cat ${a} | bzip2 -${b} > ${a}.${b}.bz2 cat ${a} | xz -${b} > ${a}.${b}.xz done done