Re: profiling pgbench
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2010-11-24T21:11:55Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > I did some profiling of pgbench -j 36 -c 36 -T 500 banging on my > two-core desktop box - with synchronous_commit turned off to keep the > fsyncs from dominating the profile - and got these results: > 29634 4.7124 postgres base_yyparse Seems like pgbench is a poster child for the value of prepared statements. Have you tried it with "-M prepared"? I'd take this with a grain of salt as to whether it's representative of real applications, of course. regards, tom lane