From owner-freebsd-current@FreeBSD.ORG Thu Jun 28 01:45:07 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7A1F106564A for ; Thu, 28 Jun 2012 01:45:07 +0000 (UTC) (envelope-from oleg.moskalenko@citrix.com) Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) by mx1.freebsd.org (Postfix) with ESMTP id 8F2528FC0A for ; Thu, 28 Jun 2012 01:45:07 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.77,488,1336363200"; d="scan'208";a="200319243" Received: from sjcpmailmx02.citrite.net ([10.216.14.75]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/RC4-MD5; 27 Jun 2012 21:45:05 -0400 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.73]) by SJCPMAILMX02.citrite.net ([10.216.14.75]) with mapi; Wed, 27 Jun 2012 18:45:04 -0700 From: Oleg Moskalenko To: FreeBSD Current Date: Wed, 27 Jun 2012 18:45:04 -0700 Thread-Topic: [HEADS-UP] BSD sort is the default sort in -CURRENT Thread-Index: Ac1Uo5g7GRfagTCSQTmFXyZMUcNVBAAKET7Q Message-ID: <031222CBCF33214AB2EB4ABA279428A3012CA28AEB84@SJCPMAILBOX01.citrite.net> References: <4FEAA280.2070705@FreeBSD.org> <4FEAA599.9070107@FreeBSD.org> <031222CBCF33214AB2EB4ABA279428A3012CA28AEB6D@SJCPMAILBOX01.citrite.net> <4FEAC5B1.30104@FreeBSD.org> <4FEB6D2B.4090508@FreeBSD.org> In-Reply-To: <4FEB6D2B.4090508@FreeBSD.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [HEADS-UP] BSD sort is the default sort in -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 28 Jun 2012 01:45:08 -0000 Hi As promised, I am supplying an example of comparison between several sort p= rograms. The test file is a randomly generated 1,000,000 lines, each line contain a = single floating point number.=20 We are going to sort it three ways - as text, as -n numeric sort, and as -g= numeric sort, with 4 programs:=20 1) Old BSD/GNU sort 5.3.0 2) New GNU sort 8.15 3) New BSD sort, single threaded 4) New BSD sort, multi-threaded The system is a 3-CPUs system, 1.5Gb of RAM, FreeBSD version 8.2. All times= are in seconds. Locale C. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D TEXT SORT sys user real Old BSD/GNU sort: 0.0 1.692 2.008 New GNU sort: 0.0 2.279 1.605 New BSD sort, st: 0.0 1.964 2.300 New BSD sort, mt: 0.0 2.385 1.897 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D NUMERIC SORT -n =20 sys user real Old BSD/GNU sort: 0.0 4.357 4.674 New GNU sort: 0.0 8.839 5.134 New BSD sort, st: 0.0 5.308 5.592 New BSD sort, mt: 0.0 4.581 2.489 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D NUMERIC SORT -g sys user real Old BSD/GNU sort: 0.0 45.378 45.630 New GNU sort: ~450 ~121 ~300 New BSD sort, st: 0.33 4.334 5.992 New BSD sort, mt: 11.140 4.624 8.983 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks Oleg