Re: pgsql: pgbench: Improve time logic.

2021-03-09 Thread Michael Paquier
Hi Thomas, On Wed, Mar 10, 2021 at 04:52:01AM +, 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, bu

pgsql: pgbench: Improve time logic.

2021-03-09 Thread Thomas Munro
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 Reviewed-by: Kyotaro Horiguchi Revi