Re: qsort (was Re: Solaris)

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mike Castle <dalgoda(at)ix(dot)netcom(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: qsort (was Re: Solaris)
Date: 2003-04-30 00:26:45
Message-ID: 200304300026.h3U0QjL12820@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Castle wrote:
> In article <4896(dot)1051644271(at)sss(dot)pgh(dot)pa(dot)us>,
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >dalgoda(at)ix(dot)netcom(dot)com (Mike Castle) writes:
> >> Better yet: Anyway of running performance tests from configure?
> >
> >Peter will object to that because of cross-compilation issues; and I'll
> >object because I run configure often enough that I don't want it to take
> >the time that would be needed for a reliable performance test ...
>
>
> Understandable.
>
> What about --with-pg-qsort (that defaults to use for currently known
> systems) with a test program people could run if they want?

Let's have folks run a test program and get the results for some OS's.
I would prefer to get some results before moving to a formalized option.

> In that case, would counting the calls to the compare function be the
> appropriate measurement (I'd think either wall or system time would vary
> too widely).

No. It is not calls the compare function, but total time in the qsort
routine that has to be measured.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message elein 2003-04-30 00:35:31 fixed size columns
Previous Message Mike Castle 2003-04-29 23:41:09 Re: qsort (was Re: Solaris)