OLTPBench:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
(→安裝) |
(→測試) |
||
(未显示同一用户的2个中间版本) | |||
第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 | |||
</syntaxhighlight> | |||
執行測試: | |||
<syntaxhighlight lang="bash"> | |||
./oltpbench -b tpcc -c config/tpcc.xml --execute=true | |||
</syntaxhighlight> | </syntaxhighlight> | ||
== 外部連結 == | == 外部連結 == | ||
* {{Official|https://github.com/oltpbenchmark/oltpbench}} | * {{Official|https://github.com/oltpbenchmark/oltpbench}} | ||
[[Category:軟體]] |
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