Re: pgbench: option delaying queries till connections establishment? - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: pgbench: option delaying queries till connections establishment?
Date
Msg-id 7097ab51-a26-c934-1f43-f6af38ba2aa6@mines-paristech.fr
Whole thread Raw
In response to Re: pgbench: option delaying queries till connections establishment?  (Dave Cramer <davecramer@postgres.rocks>)
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Should we remove db_user_namespace?
Next
From: Peter Eisentraut
Date:
Subject: Re: Cleaning up threading code