From owner-freebsd-hackers Mon Jan 15 02:34:11 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA04199 for hackers-outgoing; Mon, 15 Jan 1996 02:34:11 -0800 (PST) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA04143 for ; Mon, 15 Jan 1996 02:34:00 -0800 (PST) Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.17.12]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id LAA29301; Mon, 15 Jan 1996 11:15:23 +0100 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id LAA20061; Mon, 15 Jan 1996 11:15:18 +0100 Date: Mon, 15 Jan 1996 11:15:18 +0100 Message-Id: <199601151015.LAA20061@caramba.cs.tu-berlin.de> To: Bruce Evans Cc: hackers@freebsd.org Subject: Re: wc(1) In-Reply-To: <199601100713.SAA00480@godzilla.zeta.org.au> References: <199601100713.SAA00480@godzilla.zeta.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-hackers@freebsd.org Precedence: bulk Bruce Evans writes: >Freshly compiled statically linked wc's only show the 20% unimprovement >for plain wc here under -current. wc -l is only 6% slower. The algorithm is broken. If reading from stdin wc [-lc] always calculate words. $ uname -a FreeBSD freebsd 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Sat Jan 13 20:19:39 MET 1996 root@freebsd:/usr4/src/src/sys/compile/FREEBSD i386 $ cat /usr/share/dict/words | time ./wc-netbsd/wc -c 2486813 0.38 real 0.01 user 0.11 sys $ cat /usr/share/dict/words | time ./wc-freebsd/wc -c 2486813 1.05 real 0.76 user 0.04 sys Wolfram