「OLTPBench」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
無編輯摘要
 
行 25: 行 25:


== 測試 ==
== 測試 ==
先建立並且產生資料:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
./oltpbench -b tpcc -c config/tpcc.xml --create=true --load=true --execute=true
./oltpbench -b tpcc -c config/tpcc.xml --create=true --load=true
</syntaxhighlight>
 
執行測試:
<syntaxhighlight lang="bash">
./oltpbench -b tpcc -c config/tpcc.xml --execute=true
</syntaxhighlight>
</syntaxhighlight>



於 2018年12月10日 (一) 03:48 的最新修訂

OLTPBench是一套資料庫效能測試軟體。

基本環境

目前測試的環境為Ubuntu 18.04,其他的平台目前還沒測過。

安裝

目前測出來發現需要同時安裝OpenJDK 8與OpenJDK 11,並且將預設的Java改到OpenJDK 8:

sudo apt install ant openjdk-8-jdk default-jdk
sudo update-alternatives --config java

然後再下載編譯:

git clone https://github.com/oltpbenchmark/oltpbench.git
cd oltpbench
ant

設定

config/目錄下找一個適合的來改:

cp config/tpcc_config_postgres.xml config/tpcc.xml

測試

先建立並且產生資料:

./oltpbench -b tpcc -c config/tpcc.xml --create=true --load=true

執行測試:

./oltpbench -b tpcc -c config/tpcc.xml --execute=true

外部連結