Commit bfd4567
committed
pgbench: Avoid unnecessary measurement of connection delays.
Commit 547f04e changed pgbench so that it used the measurement result
of connection delays in its benchmark report only when -C/--connect option
is specified. But previously those delays were unnecessarily measured
even when that option is not specified. Which was a waste of cycles.
This commit improves pgbench so that it avoids such unnecessary measurement.
Back-patch to v14 where commit 547f04e first appeared.
Author: Yugo Nagata
Reviewed-by: Fabien COELHO, Asif Rehman, Fujii Masao
Discussion: https://postgr.es/m/20210614151155.a393bc7d8fed183e38c9f52a@sraoss.co.jp1 parent bad6cef commit bfd4567
1 file changed
+1
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6603 | 6603 | | |
6604 | 6604 | | |
6605 | 6605 | | |
| 6606 | + | |
6606 | 6607 | | |
6607 | 6608 | | |
6608 | 6609 | | |
| |||
6626 | 6627 | | |
6627 | 6628 | | |
6628 | 6629 | | |
6629 | | - | |
6630 | | - | |
6631 | | - | |
6632 | | - | |
6633 | | - | |
6634 | | - | |
6635 | | - | |
6636 | | - | |
6637 | 6630 | | |
6638 | 6631 | | |
6639 | 6632 | | |
| |||
0 commit comments