]> granicus.if.org Git - postgresql/commit
Change the way latency is calculated with pgbench --rate option.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 11 Sep 2014 09:40:01 +0000 (12:40 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 11 Sep 2014 09:57:32 +0000 (12:57 +0300)
commit02e3bcc661598275a75a8649b48602dca7aeec79
tree7f6313aec59f4799422d04a1196157221efac5a9
parent75717ce8f0cdca6a6778d0a9a6ef6d3196b9e483
Change the way latency is calculated with pgbench --rate option.

The reported latency values now include the "schedule lag" time, that is,
the time between the transaction's scheduled start time and the time it
actually started. This relates better to a model where requests arrive at a
certain rate, and we are interested in the response time to the end user or
application, rather than the response time of the database itself.

Also, when --rate is used, include the schedule lag time in the log output.

The --rate option is new in 9.4, so backpatch to 9.4. It seems better to
make this change in 9.4, while we're still in the beta period, than ship a
9.4 version that calculates the values differently than 9.5.
contrib/pgbench/pgbench.c
doc/src/sgml/pgbench.sgml