Date: Wed, 27 Jun 2012 18:45:04 -0700 From: Oleg Moskalenko <oleg.moskalenko@citrix.com> To: FreeBSD Current <freebsd-current@freebsd.org> Subject: RE: [HEADS-UP] BSD sort is the default sort in -CURRENT Message-ID: <031222CBCF33214AB2EB4ABA279428A3012CA28AEB84@SJCPMAILBOX01.citrite.net> In-Reply-To: <4FEB6D2B.4090508@FreeBSD.org> References: <4FEAA280.2070705@FreeBSD.org> <4FEAA599.9070107@FreeBSD.org> <031222CBCF33214AB2EB4ABA279428A3012CA28AEB6D@SJCPMAILBOX01.citrite.net> <4FEAC5B1.30104@FreeBSD.org> <4FEB6D2B.4090508@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi
As promised, I am supplying an example of comparison between several sort programs.
The test file is a randomly generated 1,000,000 lines, each line contain a single floating point number.
We are going to sort it three ways - as text, as -n numeric sort, and as -g numeric sort, with 4 programs:
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.
==============================================
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
==============================================
NUMERIC SORT -n
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
==============================================
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
===============================================
Thanks
Oleg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?031222CBCF33214AB2EB4ABA279428A3012CA28AEB84>
