Create a gist now

Instantly share code, notes, and snippets.

(an informal comparison of lzma compression times using easylzma, lzma utils, and lzip)
[lloydh@LloydBookPro test] $ lzma --version
LZMA command line tool 4.32.6
LZMA SDK 4.32
[lloydh@LloydBookPro test] $ lzip --version
Lzip 1.4
Copyright (C) 2009 Antonio Diaz Diaz.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[lloydh@LloydBookPro test] $ time lzma sample.tar
real 1m1.770s
user 0m59.798s
sys 0m0.511s
[lloydh@LloydBookPro test] $ time lzip sample.tar.1
real 0m56.264s
user 0m55.439s
sys 0m0.339s
[lloydh@LloydBookPro test] $ time ../Darwin/bin/elzma sample.tar.2
real 0m30.350s
user 0m29.593s
sys 0m0.476s
[lloydh@LloydBookPro test] $ time ../Darwin/bin/elzma --lzip sample.tar.3
real 0m31.070s
user 0m29.986s
sys 0m0.511s
[lloydh@LloydBookPro test] $ time xz-4.999.8beta/src/xz/xz sample.tar.4
real 0m37.702s
user 0m36.672s
sys 0m0.435s
[lloydh@LloydBookPro test] $ time gzip sample.tar.5
real 0m4.424s
user 0m4.105s
sys 0m0.095s
[lloydh@LloydBookPro test] $ time bzip2 sample.tar.6
real 0m12.842s
user 0m12.366s
sys 0m0.191s
[lloydh@LloydBookPro test] $ time ./xz_mt_simple 4 6 < sample.tar.7 > sample.tar.7.xz
real 0m21.684s
user 0m37.992s
sys 0m0.844s
[lloydh@LloydBookPro test] $ time gzip -9 sample.tar.8
real 0m18.199s
user 0m17.306s
sys 0m0.187s
[lloydh@LloydBookPro test] $ time bzip2 -9 sample.tar.9
real 0m12.750s
user 0m12.325s
sys 0m0.195s
[lloydh@LloydBookPro test] $ time ./xz_mt_simple 2 6 < sample.tar.10 > sample.tar.10.xz
real 0m26.317s
user 0m36.874s
sys 0m0.776s
[lloydh@LloydBookPro test] $ ls -lah
total 55152
drwxr-xr-x 5 lloydh users 170B Feb 7 09:18 .
drwxr-xr-x 22 lloydh users 748B Feb 7 09:15 ..
-rw-r--r-- 1 lloydh users 8.9M Feb 7 09:15 sample.tar.lzma
-rw-r--r-- 1 lloydh users 9.0M Feb 7 09:15 sample.tar.1.lz
-rw-r--r-- 1 lloydh users 9.0M Feb 7 09:18 sample.tar.2.lzma
-rw-r--r-- 1 lloydh users 9.0M Feb 7 09:20 sample.tar.3.lz
-rw-r--r-- 1 lloydh users 8.9M Feb 7 09:20 sample.tar.4.xz
-rw-r--r-- 1 lloydh users 16M Feb 7 09:15 sample.tar.5.gz
-rw-r--r-- 1 lloydh users 14M Feb 7 10:12 sample.tar.6.bz2
-rw-r--r-- 1 lloydh users 9.0M Feb 7 10:15 sample.tar.7.xz
-rw-r--r-- 1 lloydh users 16M Feb 7 10:19 sample.tar.8.gz
-rw-r--r-- 1 lloydh users 14M Feb 7 10:19 sample.tar.9.bz2
-rw-r--r-- 1 lloydh users 9.0M Feb 7 10:26 sample.tar.10.xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment