Re: FUNC_MAX_ARGS benchmarks

Joe Conway <mail@joeconway.com>

From: Joe Conway <mail@joeconway.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>, Thomas Lockhart <lockhart@fourpalms.org>, Neil Conway <nconway@klamath.dyndns.org>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2002-08-03T06:00:47Z
Lists: pgsql-hackers
Tom Lane wrote:
> No, it was a 2% hit on rather slow functions with only one call made
> per query issued by the client.  This is not much of a stress test.
> 
> A more impressive comparison would be
> 
> select 2+2+2+2+2+2+ ... (iterate 10000 times or so)
> 
> and see how much that slows down.

I ran a crude test as follows (using a PHP script on the same machine. 
Nothing else going on at the same time):

do 100 times
   select 2+2+2+2+2+2+ ... iterated 9901 times


#define INDEX_MAX_KEYS		16, 32, 64, & 128
#define FUNC_MAX_ARGS		INDEX_MAX_KEYS
make all
make install
initdb

The results were as follows:
INDEX_MAX_KEYS    16    32      64     128
                 -----+-------+------+--------
Time in seconds   48    49      51      55


Joe