X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6D97C9FA19B for ; Sun, 21 May 2006 16:24:05 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 13171-06 for ; Sun, 21 May 2006 16:23:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by postgresql.org (Postfix) with ESMTP id ED3919F9316 for ; Sun, 21 May 2006 16:23:56 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 9450849; Sun, 21 May 2006 12:27:04 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Benchmarking Function Date: Sun, 21 May 2006 12:23:49 -0700 User-Agent: KMail/1.8.2 Cc: David Wheeler References: <1D5FC47D-8D90-4856-8EB7-833476A37587@kineticode.com> In-Reply-To: <1D5FC47D-8D90-4856-8EB7-833476A37587@kineticode.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200605211223.49499.josh@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/412 X-Sequence-Number: 19199 DW, > The idea of the control is, of course, to subtract the overhead of =A0 > the benchmarking function from the code actually being tested. So I =A0 > guess my question is, how important is it to have the control there, =A0 > and, if it is important, how should it actually work? Well, per our conversation the approach doesn't really work. EXECUTE=20 'string' + generate_series seems to carry a substantial and somewhat random= =20 overhead, between 100ms and 200ms -- enough to wipe out any differences=20 between queries. =2D-=20 Josh Berkus Aglio Database Solutions San Francisco