<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>s9y testdrive - benchmarks</title>
    <link>http://nerdbynature.de/s9y/</link>
    <description>(who took the 'we' out of weblog?)</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.7-alpha1 - http://www.s9y.org/</generator>
    
    

<item>
    <title>gzip vs. pigz vs. bzip2 vs. pbzip2</title>
    <link>http://nerdbynature.de/s9y/?251</link>
            <category>benchmarks</category>
    
    <comments>http://nerdbynature.de/s9y/?251#comments</comments>
    <wfw:comment>http://nerdbynature.de/s9y/wfwcomment.php?cid=251</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://nerdbynature.de/s9y/rss.php?version=2.0&amp;type=comments&amp;cid=251</wfw:commentRss>
    

    <author>nospam@example.com (christian)</author>
    <content:encoded>
    Shortly after the last &lt;a href=&quot;http://nerdbynature.de/s9y/?239&quot;&gt;benchmark&lt;/a&gt;, I came across &lt;a href=&quot;http://www.zlib.net/pigz/&quot;&gt;pigz&lt;/a&gt; (parallel gzip) and a bigger (real-world) task to complete:

&lt;pre&gt;
$ time gzip -c file.tar &gt; file.tar
real     41m52.636s
user     33m58.392s
sys       2m26.903s

$ time pigz -c file.tar &gt; file.tar.pigz
real     18m34.894s
user     54m07.784s
sys       3m47.910s

$ time bzip2 -c file.tar &gt; file.tar.bz2
real    838m47.771s
user    830m48.621s
sys       2m18.429s

$ time pbzip2 -c file.tar &gt; file.tar.pbz2
real     58m06.466s
user   1748m17.785s
sys       4m49.537s

$ ls -lhgo
-rw-r--r--   1  15G Jun 24 02:03 file.tar
-rw-r--r--   1 598M Jun 24 22:10 file.tar.gz
-rw-r--r--   1 600M Jun 24 21:02 file.tar.pigz
-rw-r--r--   1 304M Jun 25 12:44 file.tar.bz2
-rw-r--r--   1 306M Jun 25 13:42 file.tar.pbz2
&lt;/pre&gt;

&lt;small&gt;Hardware: &lt;a href=&quot;http://www.oracle.com/us/products/servers-storage/servers/sparc-enterprise/t-series/031579.htm&quot;&gt;Sun SPARC Enterprise T5120&lt;/a&gt;, 1.2GHz 8-Core SPARC V9, 4GB RAM&lt;/small&gt; 
    </content:encoded>

    <pubDate>Fri, 01 Jul 2011 23:22:09 +0000</pubDate>
    <guid isPermaLink="false">http://nerdbynature.de/s9y/?251</guid>
    
</item>
<item>
    <title>gzip vs. bzip2 vs. pbzip2 vs. xz vs. lzma</title>
    <link>http://nerdbynature.de/s9y/?239</link>
            <category>benchmarks</category>
    
    <comments>http://nerdbynature.de/s9y/?239#comments</comments>
    <wfw:comment>http://nerdbynature.de/s9y/wfwcomment.php?cid=239</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://nerdbynature.de/s9y/rss.php?version=2.0&amp;type=comments&amp;cid=239</wfw:commentRss>
    

    <author>nospam@example.com (christian)</author>
    <content:encoded>
    Yes, another benchmark. And yes, &lt;a href=&quot;http://www.urbandictionary.com/define.php?term=YMMV&quot;&gt;YMMV&lt;/a&gt; - &lt;i&gt;big time&lt;/i&gt;:

&lt;pre&gt;
$ ls -lh file.tar
-rw-r--r-- 1 bob bob 80M May 27 12:36 file.tar

$ &lt;a href=&quot;http://nerdbynature.de/bits/misc/compress-test.sh.txt&quot;&gt;compress-test.sh&lt;/a&gt; file.tar
### gzip/9c:    6 seconds / 48.700% smaller
### bzip2/9c:   44 seconds / 50.300% smaller
### pbzip2/9c:  22 seconds / 50.200% smaller
### xz/9c:      79 seconds / 53.400% smaller
### lzma/9c:    120 seconds / 53.200% smaller
### gzip/1c:    4 seconds / 46.200% smaller
### bzip2/1c:   30 seconds / 48.100% smaller
### pbzip2/1c:  15 seconds / 48.000% smaller
### xz/1c:      35 seconds / 51.100% smaller
### lzma/1c:    18 seconds / 49.700% smaller
### gzip/dc:    0 seconds
### bzip2/dc:   7 seconds
### pbzip2/dc:  4 seconds
### xz/dc:      4 seconds
### lzma/dc:    5 seconds
&lt;/pre&gt;

Versions used:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://packages.debian.org/squeeze/linux-image-2.6-686&quot;&gt;Linux 2.6.32-5-686&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.gnu.org/software/gzip/&quot;&gt;gzip 1.3.12&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://bzip.org/&quot;&gt;bzip2 1.0.5&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.compression.ca/pbzip2/&quot;&gt;pbzip2 1.1.1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://tukaani.org/xz/&quot;&gt;xz 5.0.0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://tukaani.org/lzma/&quot;&gt;lzma 4.32.0beta3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Sat, 28 May 2011 01:03:46 +0000</pubDate>
    <guid isPermaLink="false">http://nerdbynature.de/s9y/?239</guid>
    
</item>

</channel>
</rss>

