pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: pgbench: Improve time logic.
2+ messages / 2 participants
[nested] [flat]
* pgsql: pgbench: Improve time logic.
@ 2021-03-10 04:52 Thomas Munro <tmunro@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Munro @ 2021-03-10 04:52 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
pgbench: Improve time logic.
Instead of instr_time (struct timespec) and the INSTR_XXX macros,
introduce pg_time_usec_t and use integer arithmetic. Don't include the
connection time in TPS unless using -C mode, but report it separately.
Author: Fabien COELHO <coelho@cri.ensmp.fr>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Discussion: https://postgr.es/m/20200227180100.zyvjwzcpiokfsqm2%40alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/547f04e7348b6ed992bd4a197d39661fe7c25097
Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 39 ++--
src/bin/pgbench/pgbench.c | 407 ++++++++++++++++-------------------
src/include/portability/instr_time.h | 28 +++
src/tools/pgindent/typedefs.list | 1 +
4 files changed, 231 insertions(+), 244 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pgsql: pgbench: Improve time logic.
@ 2021-03-10 07:08 Michael Paquier <michael@paquier.xyz>
parent: Thomas Munro <tmunro@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2021-03-10 07:08 UTC (permalink / raw)
To: Thomas Munro <tmunro@postgresql.org>; +Cc: pgsql-committers@lists.postgresql.org
Hi Thomas,
On Wed, Mar 10, 2021 at 04:52:01AM +0000, Thomas Munro wrote:
> pgbench: Improve time logic.
>
> Instead of instr_time (struct timespec) and the INSTR_XXX macros,
> introduce pg_time_usec_t and use integer arithmetic. Don't include the
> connection time in TPS unless using -C mode, but report it separately.
The buildfarm is complaining after this commit with lapwing:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lapwing&dt=2021-03-10%2006%3A40%3A10
pgbench.c:3569:6: error: format '%ld' expects argument of type 'long
int', but argument 6 has type 'pg_time_usec_t' [-Werror=format]
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-03-10 07:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 04:52 pgsql: pgbench: Improve time logic. Thomas Munro <tmunro@postgresql.org>
2021-03-10 07:08 ` Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox