From owner-cvs-all Tue Feb 6 17:25:59 2001 Delivered-To: cvs-all@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 10AD837B401; Tue, 6 Feb 2001 17:25:38 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f171Mc850697; Tue, 6 Feb 2001 17:22:38 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200102070122.f171Mc850697@iguana.aciri.org> Subject: Re: bzip2 (was cvs commit: ...) In-Reply-To: <200102070106.f1716qt53369@mobile.wemm.org> from Peter Wemm at "Feb 6, 2001 5: 6:52 pm" To: peter@netplex.com.au (Peter Wemm) Date: Tue, 6 Feb 2001 17:21:09 -0800 (PST) Cc: jkh@winston.osd.bsdi.com, jhb@FreeBSD.org, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, sheldonh@uunet.co.za, obrien@FreeBSD.org, mi@aldan.algebra.com X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > ... The difference between bzip2 and gzip is like the difference > between vi and emacs. Ok, just to have a few numbers, i ran a comparative test: > time bzip2 < /kernel > /tmp/k.bz2 7.497u 0.085s 0:07.65 98.9% 67+9683k 0+22io 0pf+0w > time gzip < /kernel > /tmp/k.gz 1.916u 0.007s 0:01.98 96.4% 125+620k 0+22io 0pf+0w > ls -l /tmp/k* -rw-r--r-- 1 rizzo wheel 1242616 Feb 6 17:12 /tmp/k.bz2 -rw-r--r-- 1 rizzo wheel 1282591 Feb 6 17:13 /tmp/k.gz > time gzip -d < /tmp/k.gz > /dev/null 0.192u 0.000s 0:00.19 100.0% 121+640k 0+0io 0pf+0w > time bzip2 -d < /tmp/k.bz2 > /dev/null 1.267u 0.031s 0:01.31 98.4% 66+4821k 0+0io 0pf+0w there is still a huge difference in speed and memory, for a very modest saving (less than 5%). Yes, it really looks like the difference between vi and emacs :) > size `which vi` `which emacs` text data bss dec hex filename 269477 976 3584 274037 42e75 /usr/bin/vi 622562 1249084 0 1871646 1c8f1e /usr/local/bin/emacs cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message