Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akzFL-0006EP-Ls for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 19:24:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1akzFL-0003MA-3A for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 19:24:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1akzDz-0001rs-VN for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 19:22:48 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1akzDs-0002NQ-Al for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 19:22:47 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id A0E4C40097D; Tue, 29 Mar 2016 12:22:32 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 64A3C5B0; Tue, 29 Mar 2016 16:22:30 -0300 (CLT) Date: Tue, 29 Mar 2016 16:22:30 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: PostgreSQL Developers Subject: Re: pgbench stats per script & other stuff Message-ID: <20160329192230.GA907630@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Fabien COELHO wrote: > > Hello, > > >>In doing this, I noticed that the latency output is wrong if you use -T > >>instead of -t; it always says the latency is zero because "duration" is > >>zero. I suppose it should be like in the attached instead. > > Indeed, I clearly overlooked option -t (transactions) which I never use. Makes sense. > >Patch actually attached here. > > Tested. There is a small issue because the \n is missing. > > Here is another version which just replaces duration by time_include, > as they should be pretty close, and fixes the style so that it is the same > whether the detailed stats are collected or not, as you pointed out. Thanks, that makes sense. > >>At the same time, it says "latency average: XYZ" instead of "latency > >>average = XYZ" as in printSimpleStats, which doesn't look terribly > >>important. But the line appears in the SGML docs. > > Indeed. The documentation is manually edited when submitting changes so as > to minimize diffs, but then it does not correspond anymore to any actual > output, so it is easy to do it wrong. Well, you fixed the "latency stddev" line to the sample output too, but in my trial run that line was not displayed, only the latency average. What are the command line args that supposedly produced this output? Maybe we should add it as a SGML comment, or even display it to the doc's reader. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers