From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: pgbench: Improve time logic. |
Date: | 2021-03-10 04:52:01 |
Message-ID: | E1lJqpF-00064e-C6@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)cri(dot)ensmp(dot)fr>
Reviewed-by: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Reviewed-by: Hayato Kuroda <kuroda(dot)hayato(at)fujitsu(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2021-03-10 05:55:05 | pgsql: Move tablespace path re-creation from the makefiles to pg_regres |
Previous Message | Amit Kapila | 2021-03-10 04:43:14 | pgsql: Fix valgrind issue in commit 05c8482f7f. |