From owner-freebsd-current@FreeBSD.ORG Tue Nov 25 02:55:29 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4787C16A4CE for ; Tue, 25 Nov 2003 02:55:29 -0800 (PST) Received: from smtp.noos.fr (nan-smtp-15.noos.net [212.198.2.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5BEF43FDF for ; Tue, 25 Nov 2003 02:55:27 -0800 (PST) (envelope-from boyd@insultant.net) Received: (qmail 12346 invoked by uid 0); 25 Nov 2003 10:55:23 -0000 Received: from unknown (HELO coma) ([81.64.132.185]) (envelope-sender ) by 212.198.2.123 (qmail-ldap-1.03) with SMTP for ; 25 Nov 2003 10:55:23 -0000 Message-ID: <01c801c3b342$7bd25060$b9844051@insultant.net> From: "boyd, rounin" To: References: <200311242125.13786.sam@errno.com><20031124.231607.128865107.imp@bsdimp.com><20031125080155.GC76478@server.vk2pj.dyndns.org><20031125.011734.118629079.imp@bsdimp.com> <20031125084740.GE76478@server.vk2pj.dyndns.org> Date: Tue, 25 Nov 2003 11:53:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: 40% slowdown with dynamic /bin/sh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2003 10:55:29 -0000 > That's a more interesting result and more comparable to Drew's test. > It doesn't necessarily invalidate Drew's results - /bin/sh has 3 > shared libraries and is locale-aware whereas /usr/bin/test has 1 > shared library and doesn't rely on the locale. /usr/bin/true is also > significantly smaller (implying less relocation requirements). > /bin/sh could reasonably be expected to take longer to startup then > /usr/bin/test. another can of worms. various shells have test, true and false built in. so, you have to be very careful in writing a shell comparision benchmark. to complicate matters, ksh (statically linked) has _always_ been faster than sh.