<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ststyle.net &#187; pgbench</title>
	<atom:link href="http://www.ststyle.net/weblog/archives/tag/pgbench/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ststyle.net/weblog</link>
	<description>Just another ststyle techlog</description>
	<lastBuildDate>Mon, 19 Jul 2010 13:53:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>pgbench インストール</title>
		<link>http://www.ststyle.net/weblog/archives/443</link>
		<comments>http://www.ststyle.net/weblog/archives/443#comments</comments>
		<pubDate>Fri, 23 Oct 2009 07:04:49 +0000</pubDate>
		<dc:creator>ststyle</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[pgbench]]></category>
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.ststyle.net/weblog/?p=443</guid>
		<description><![CDATA[pgbenchにてpostgreSQLの
ベンチマークを測定する事ができます
言うまでもありませんがポスグレをインストールしたサーバで行います。
pgbenchのインストール
ベンチマーク用データベースを作成し、初期化
 [...]]]></description>
			<content:encoded><![CDATA[<p>pgbenchにてpostgreSQLの</p>
<p>ベンチマークを測定する事ができます</p>
<p>言うまでもありませんがポスグレをインストールしたサーバで行います。</p>
<h3>pgbenchのインストール</h3>
<pre class="brush: bash; auto-links: false;">
su postgres
cd /usr/local/src/postgresql-8.3.4/contrib/pgbench
make
make install
</pre>
<p>ベンチマーク用データベースを作成し、初期化</p>
<pre class="brush: bash; auto-links: false;">

createdb pgbench
pgbench -i pgbench
</pre>
<h3>測定評価</h3>
<p>tps(trunsaction per second)値が高いほど良い</p>
<p>デフォルトはクライアント数1、トランザクション数10で</p>
<p>SELECT,INSERT,UPDATEが実行される<br />
tpsは1秒間に処理可能なトランザクション数で</p>
<p>数字が大きいほど性能が良いということ<br />
2行の違いは接続の確立に要した時間を含むか含まないか</p>
<p>SELECTのみをクライアント数10、トランザクション数100とする場合は</p>
<pre class="brush: bash; auto-links: false;">

$ pgbench -S -c 10 -t 100 pgbench
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ststyle.net/weblog/archives/443/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
