OLTPBench:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
无编辑摘要 |
无编辑摘要 |
||
第16行: | 第16行: | ||
cd oltpbench | cd oltpbench | ||
ant | ant | ||
</syntaxhighlight> | |||
== 設定 == | |||
從<code>config/</code>目錄下找一個適合的來改: | |||
<syntaxhighlight lang="bash"> | |||
cp config/tpcc_config_postgres.xml config/tpcc.xml | |||
</syntaxhighlight> | |||
== 測試 == | |||
<syntaxhighlight lang="bash"> | |||
./oltpbench -b tpcc -c config/tpcc.xml --create=true --load=true --execute=true | |||
</syntaxhighlight> | </syntaxhighlight> | ||
2018年12月10日 (一) 03:45的版本
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 --execute=true