Re: trying to use xz on manuals.

From: Chuck Swiger <cswiger_at_mac.com>
Date: Tue, 07 Dec 2010 11:10:20 -0800
On Dec 6, 2010, at 11:30 PM, Alex Kozlov wrote:
> On Mon, Dec 06, 2010 at 10:50:44PM -0800, Tim Kientzle wrote:
>> It might make sense if XZ decompression were significantly
>> faster than GZip decompression.  (Especially since man pages
>> are decompressed much more often than they are compressed.)
> 
> It's not.

Agreed, gzip is faster than XZ, but for manpages the difference is so small that a human won't notice any difference.  The slowest machine I have around is a Pentium III _at_ 933 MHz, and it's getting (typical results from 5 trials, on a FreeBSD 7.4-PRERELEASE system) shows:

$ time gzcat CC.1.gz > /dev/null
real	0m0.021s
user	0m0.013s
sys	0m0.007s

$ time xzcat CC.1.xz > /dev/null
real	0m0.063s
user	0m0.055s
sys	0m0.007s

Regards,
-- 
-Chuck

PS: I installed bash just to get millisecond-accuracy for the timing.  :-)  Is there any way to convince the default /bin/sh or /usr/bin/time to output the same...?
Received on Tue Dec 07 2010 - 18:10:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:10 UTC