update some content
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"articleSection" : "post",
|
||||
"name" : "[筆記] postgresql 效能測試 \/ postgresql benchmakr using pgbench",
|
||||
"headline" : "[筆記] postgresql 效能測試 \/ postgresql benchmakr using pgbench",
|
||||
"description" : "\x3cp\x3e昨天老闆在slack 上面問說現在的幾台 DB Server 有沒有跑過 pgbench\x3c\/p\x3e\n\x3cp\x3e分數大概如何,想要跟他的筆電做個比較\x3c\/p\x3e\n\x3cp\x3e之前有跑過幾次,這次就順便測試一下不同的硬體配置、以及不同的軟體版本\x3c\/p\x3e\n\x3cp\x3e對於pgbench 跑分會有多大的影響\x3c\/p\x3e",
|
||||
"description" : "\u003cp\u003e昨天老闆在slack 上面問說現在的幾台 DB Server 有沒有跑過 pgbench\u003c\/p\u003e\n\u003cp\u003e分數大概如何,想要跟他的筆電做個比較\u003c\/p\u003e\n\u003cp\u003e之前有跑過幾次,這次就順便測試一下不同的硬體配置、以及不同的軟體版本\u003c\/p\u003e\n\u003cp\u003e對於pgbench 跑分會有多大的影響\u003c\/p\u003e",
|
||||
"inLanguage" : "en",
|
||||
"author" : "Eric Chang",
|
||||
"creator" : "Eric Chang",
|
||||
@@ -21,8 +21,8 @@
|
||||
"accountablePerson" : "Eric Chang",
|
||||
"copyrightHolder" : "Eric Chang",
|
||||
"copyrightYear" : "2020",
|
||||
"datePublished": "2020-01-07 11:18:59 \x2b0800 CST",
|
||||
"dateModified" : "2020-01-07 11:18:59 \x2b0800 CST",
|
||||
"datePublished": "2020-01-07 11:18:59 \u002b0800 CST",
|
||||
"dateModified" : "2020-01-07 11:18:59 \u002b0800 CST",
|
||||
"url" : "https:\/\/h.cowbay.org\/post\/postgresql-pgbench-benchmark\/",
|
||||
"wordCount" : "336",
|
||||
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-17.jpg"",
|
||||
@@ -45,9 +45,9 @@
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
|
||||
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1632901489" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1632901489" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -331,7 +331,7 @@ pgbench -i -U postgres -s 10 pgbench</p>
|
||||
<p><img src="https://i.imgur.com/vQFfj6Y.png" alt="‘postgresql pgbench banchmark reults’"></p>
|
||||
<p>另外補上一個 2 cores / 2G RAM 的結果</p>
|
||||
<h3 id="postgresql-10--2g-ram--hdd-on-10g-storage">postgresql 10 , 2G RAM , HDD on 10G Storage</h3>
|
||||
<pre><code>postgres@ubuntu:~$ pgbench -t 100 -c 100 -S -U postgres pgbench
|
||||
<pre tabindex="0"><code>postgres@ubuntu:~$ pgbench -t 100 -c 100 -S -U postgres pgbench
|
||||
starting vacuum...end.
|
||||
transaction type: <builtin: select only>
|
||||
scaling factor: 10
|
||||
@@ -366,8 +366,8 @@ tps = 8651.036900 (excluding connections establishing)
|
||||
<li>從表格中可以看到,當CPU Cores 增加,pgbench的效能也明顯增加</li>
|
||||
<li>而我甚至還沒有指定用多核心去執行測試,如果要用多核心去測試,要把測試指令改成</li>
|
||||
</ul>
|
||||
<pre><code>pgbench -j 4 -t 100 -c 100 -S -U postgres pgbench
|
||||
|
||||
<pre tabindex="0"><code>pgbench -j 4 -t 100 -c 100 -S -U postgres pgbench
|
||||
|
||||
</code></pre></li>
|
||||
<li>
|
||||
<p>10G Storage和 3顆 2T SATA硬碟組成的 raidz 效能差不多</p>
|
||||
@@ -666,7 +666,7 @@ title="pinterest icon"></i>
|
||||
</div>
|
||||
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
|
||||
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1632901489"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user