From owner-svn-src-all@FreeBSD.ORG Mon Jul 14 19:23:27 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD89F2B0 for ; Mon, 14 Jul 2014 19:23:27 +0000 (UTC) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::1]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6ED202A06 for ; Mon, 14 Jul 2014 19:23:26 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/auYssS93lfkVCP4K7Q== X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-2-202-24-103.web.vodafone.de [2.202.24.103]) by smtp.strato.de (RZmta 35.2 DYNA|AUTH) with ESMTPSA id q07c05q6EJNNclO (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Mon, 14 Jul 2014 21:23:23 +0200 (CEST) Received: by britannica.bec.de (sSMTP sendmail emulation); Mon, 14 Jul 2014 21:23:22 +0200 Date: Mon, 14 Jul 2014 21:23:22 +0200 From: Joerg Sonnenberger To: svn-src-all@freebsd.org Subject: Re: svn commit: r268566 - head/usr.bin/users Message-ID: <20140714192322.GA23366@britannica.bec.de> References: <201407120747.s6C7lpYE020200@svn.freebsd.org> <20140712195452.N3279@besplex.bde.org> MIME-Version: 1.0 In-Reply-To: <20140712195452.N3279@besplex.bde.org> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 19:23:27 -0000 On Sat, Jul 12, 2014 at 09:34:28PM +1000, Bruce Evans wrote: > Run time: > C++ sort() was twice as slow as qsort() for sorting 1 million dummy > users in the allocation tests. About 8 seconds instead of 4, except > when compiled with -g -O0 it was 15 seconds instead of 4. I find that claim strange and not reproducable. In my tests, std::sort tends to be significant faster than qsort. Attached is a small test program that for me is twice as fast for sorting integers... Joerg