Re: pgbench: option delaying queries till connections establishment?

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: pgbench: option delaying queries till connections establishment?
Дата
Msg-id 7097ab51-a26-c934-1f43-f6af38ba2aa6@mines-paristech.fr
обсуждение исходный текст
Ответ на Re: pgbench: option delaying queries till connections establishment?  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-hackers
Hello Dave,

>> I am running pgbench with the following
>> pgbench -h localhost -c 100 -j 100 -t 2 -S -s 1000 pgbench -U pgbench
>> --protocol=simple
>>
>> Without pgbouncer I get around 5k TPS
>> with pgbouncer I get around 15k TPS
>>
>> Looking at the code connection initiation time should not be part of the
>> calculation so I' puzzled why pgbouncer is making such a dramatic
>> difference ?
>
> Turns out that for this specific test, pg is faster with a pooler.

This does not tell "why".

Does the pooler prepares statements, whereas "simple" does not?

-- 
Fabien.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Should we remove db_user_namespace?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Cleaning up threading code