oltpbenchmark
oltpbenchmark是一套Java写的数据库测试程式。
安装
先下载:
sudo apt install -y ant default-jdk openjdk-8-jdk git locales
cd ~
git clone https://github.com/oltpbenchmark/oltpbench.git
编译:
cd ~/oltpbench
ant clean
ant
设定
cd ~/oltpbench
cp config/tpcc_config_postgres.xml config/tpcc.xml
vim config/tpcc.xml
# Change "DBUrl", "username", and "password".