Re: pgbench duration option
| От | Tom Lane |
|---|---|
| Тема | Re: pgbench duration option |
| Дата | |
| Msg-id | 7796.1218596413@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pgbench duration option (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>) |
| Ответы |
Re: pgbench duration option
Re: pgbench duration option |
| Список | pgsql-hackers |
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> Here is a patch to add duration option (-T) to pgbench instead of
> number of transactions (-t). -t and -T are mutually exclusive.
This seems like a fairly bad idea, because it introduces a
gettimeofday() call per transaction. On lots of (admittedly mostly
low-end) hardware, that will impose enough overhead to seriously
affect the results. Worse, the overhead is imposed on the client
side, which is already the bottleneck for pgbench tests.
If this were worth doing (which IMHO it isn't) the appropriate
implementation would be to set up a timer signal handler that would set
a flag to shut down the test after the appropriate amount of time.
regards, tom lane
В списке pgsql-hackers по дате отправления: