Re: qsort (was Re: Solaris)

From: Mark Kirkwood <markir(at)paradise(dot)net(dot)nz>
To:
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Mike Castle <dalgoda(at)ix(dot)netcom(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: qsort (was Re: Solaris)
Date: 2003-05-02 03:06:49
Message-ID: 3EB1E0C9.4040105@paradise.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I prevailed on some friends to try out a non Redhat distro plus HPUX 10.20 :

1 United Linux 1.0 (x86 Linux 2.4.19 )

Value (i = index) BSD GLIBC (seconds)
random() * mod 0.35 0.56
i % mod 0.14 0.41
i / (ITEMS / mod) 0.10 0.27
i ^ 0x5555555 0.26 0.42

2 HPUX 10.20 (pa-risc1.1 D380 )

Value (i = index) BSD HPUX (seconds)
random() * mod 8.3 14.0
i % mod 2.9 4.9
i / (ITEMS / mod) 2.4 2.9
i ^ 0x5555555 7.8 13.8

The HPUX results are interesting !

regards

Mark

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Don V. Soledad 2003-05-02 03:46:02 translate function
Previous Message Jean-Christian Imbeault 2003-05-02 02:48:26 Re: qsort (was Re: Solaris)