Date: Tue, 6 Feb 2001 17:21:09 -0800 (PST) From: Luigi Rizzo <rizzo@aciri.org> To: peter@netplex.com.au (Peter Wemm) 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 Subject: Re: bzip2 (was cvs commit: ...) Message-ID: <200102070122.f171Mc850697@iguana.aciri.org> In-Reply-To: <200102070106.f1716qt53369@mobile.wemm.org> from Peter Wemm at "Feb 6, 2001 5: 6:52 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> ... 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102070122.f171Mc850697>