Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:kompressionsverfahren

Vorbereitung

mkdir /tmp/tmpfs
mount -t tmpfs tmpfs /tmp/tmpfs

Vergleich

Unkomprimiert

time tar cf packages.tar --directory /usr/share/doc/ packages

real 0m0.275s user 0m0.049s sys 0m0.224s

Größe: 158M packages.tar

rm -rf /tmp/tmpfs/*
time tar xf packages.tar --directory /tmp/tmpfs

real 0m0.155s user 0m0.036s sys 0m0.118s

gzip

time tar cf packages.tar.gz --directory /usr/share/doc/ --use-compress-program=gzip packages

real 0m5.641s user 0m5.632s sys 0m0.187s

Größe: 39M packages.tar.gz

rm -rf /tmp/tmpfs/*
time tar xf packages.tar.gz --directory /tmp/tmpfs --use-compress-program=gzip

real 0m0.951s user 0m0.963s sys 0m0.185s

lzip

time tar cf packages.tar.lzip --directory /usr/share/doc/ --use-compress-program=lzip packages  

real 0m54.361s user 0m54.161s sys 0m0.239s

Größe: 23M packages.tar.lzip

rm -rf /tmp/tmpfs/*
time tar xf packages.tar.lzip --directory /tmp/tmpfs --use-compress-program=lzip

real 0m2.294s user 0m2.179s sys 0m0.170s

bzip2

time tar cf packages.tar.bz --directory /usr/share/doc/ --use-compress-program=bzip2 packages   

real 0m17.583s user 0m17.560s sys 0m0.237s

Größe: 27M packages.tar.bz

rm -rf /tmp/tmpfs/*
time tar xf packages.tar.bz --directory /tmp/tmpfs --use-compress-program=bzip2

real 0m6.262s user 0m6.251s sys 0m0.300s

xz

time tar cf packages.tar.xz --directory /usr/share/doc/ --use-compress-program=xz packages     

real 0m56.015s user 0m55.985s sys 0m0.371s

Größe: 23M packages.tar.xz

rm -rf /tmp/tmpfs/*
time tar xf packages.tar.xz --directory /tmp/tmpfs --use-compress-program=xz

real 0m1.834s user 0m1.830s sys 0m0.207s

zstd

TODO

admin_grundlagen/kompressionsverfahren.txt · Zuletzt geändert: 2020/03/03 16:46 von ingo_wichmann