Hi

To be able to asses the performance characteristics of the different 
wal-related options, I patched pgbench to show the average latency of each 
individual statement. The idea is to be able to compare the latency of the 
COMMIT with the ones of the other statements.

This patch adds two new finds to the Command struct, elapsed and cnt, which 
accumulate the total time spent on each statement and the number of times it 
was executed. printResults essentially prings elapsed/cnt for each statement, 
followed by the statement itself.

Patch is attached.

best regards,
Florian Pflug

Attachment: pgbench_statementlatency.patch
Description: Binary data

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to