From owner-freebsd-hackers@FreeBSD.ORG Fri May 4 15:42:22 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 613DA16A401 for ; Fri, 4 May 2007 15:42:22 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id DF13513C45B for ; Fri, 4 May 2007 15:42:21 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by mu-out-0910.google.com with SMTP id g7so882589muf for ; Fri, 04 May 2007 08:42:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=PaGC1LFxz9eTakcuCykOr0uoFEO5F35IyGtKtJ5FBcKmoCNUXAafAFiNisLZIMjze/W/vPoHrg/ZTKJMshlhEPxAFXPyq9tH03ZsvqcdW23ZFg5Z9bMyVlONQ7Chw/utheTYWEmBUeA/zrEtwltpaQGwQ+DmxdNOPUcGjHMsncU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=haBqv+Bz6c+6xuLFQGYLQZTYI7NAxImd9ZPS8HDUz592HXw/JtRSHwezupPOYVN+fzjsAVawu/1Ca+gDO2wBfEEyff49kMgJYSLiUPSJ0eKhreCctdMSPJ9GENl6WWEsrNayIm+gxSQaW02pinZUpN/tUBEqRExE36Mw3SMnBaA= Received: by 10.82.175.2 with SMTP id x2mr6798045bue.1178293340357; Fri, 04 May 2007 08:42:20 -0700 (PDT) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTP id c24sm166250ika.2007.05.04.08.42.17; Fri, 04 May 2007 08:42:19 -0700 (PDT) From: Tom Evans To: valiy In-Reply-To: <463B3D49.7090101@mail.ru> References: <463B3D49.7090101@mail.ru> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-UFh33aq9uiQuFTwYLuoF" Date: Fri, 04 May 2007 16:42:10 +0100 Message-Id: <1178293330.1510.10.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 6.1 6.2 C++ stl set.clear() very slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 15:42:22 -0000 --=-UFh33aq9uiQuFTwYLuoF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 2007-05-04 at 18:03 +0400, valiy wrote: > TEST1 > FreeBSD idx 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #1: Wed Nov 8=20 > 18:59:20 UTC 2006 root@idx:/usr/src/sys/amd64/compile/SMP amd64 >=20 >=20 > 19:07:15 root@idx3 ~ $ g++ ./test_set.cpp > 19:07:23 root@idx3 ~ $ ./a.out > filling > clearing > done > alloc time 1.938 clear time 15.290 > TEST2 > FreeBSD proton 5.5-RELEASE FreeBSD 5.5-RELEASE #0: Mon Jun 26 21:47:56=20 > MSD 2006 root@proton:/usr/src/sys/i386/compile/PROTON i386 > [root@proton ~]# g++ test_set.cpp > [root@proton ~]# ./a.out > filling > clearing > done > alloc time 2.529 clear time 5.685 >=20 >=20 > TEST3: > FreeBSD hotdog 4.9-RELEASE FreeBSD 4.9-RELEASE #3: Fri Jul 1 19:35:10=20 > MSD 2005 root@hotdog:/usr/src/sys/compile/HOTDOG i386 >=20 > 19:18 root@puma vvolodin $ ./a.out > filling > clearing > done > alloc time 4.001 clear time 0.305 >=20 > pentium3 2x700MHz >=20 > how to fix? >=20 (Couldnt see your 6.2 result, did I snip it?) Upgrade to 6.2, or for better results, 7-CURRENT=20 $ uname -a && ./stl_test=20 FreeBSD zoot.mintel.co.uk 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Mar 28 12:29:25 BST 2007 root@zoot.mintel.co.uk:/usr/obj/usr/src/sys/ZOOT i386 filling clearing done alloc time 2.252 clear time 0.441 (CURRENT with no INVARIANTS nor WITNESS, and MALLOC_PRODUCTION defined) $ uname -a && ./stl_test FreeBSD bob.mintel.co.uk 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Jan 18 14:18:05 GMT 2007 root@bob.mintel.co.uk:/usr/obj/usr/src/sys/BOB i386 filling clearing done alloc time 2.705 clear time 5.691 Is your test for 4 using GCC 2.95 ? C++ in GCC 2.95 is =C2=ABinteresting=C2= =BB in the shortcuts it takes. --=-UFh33aq9uiQuFTwYLuoF Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGO1ROlcRvFfyds/cRAr5fAKCZ4xP2KJwBrNBCL9IeiPvJrrnx1ACfbCS0 uQx5W5EaAjyLWmP9ssWuGDQ= =4oL7 -----END PGP SIGNATURE----- --=-UFh33aq9uiQuFTwYLuoF--