BenchmarkSQL一个测试数据库TPC-C的开源工具,该工具具有较好的通用性,但该工具并不能达到最佳的性能。如果只是做一个标准的、简单的性能测试,可以使用该工具。本文描述如何利用BenchmarkSQL工具快速测试GBase 8t的TPMC值。
提供如下网盘下载:
BenchmarkSQL4.0.2
https://pan.baidu.com/s/1cIpp2Q
可参看如下链接文章,不过要获得更好的性能,需要做一些优化。
http://www.informixchina.net/Article/38089
1.上传工具到Linux服务器
tar解压包,进入目录 benchmarksql-4.0.2-8t/benchmarksql-4.0.2/run
2.创建测试数据库 bmdb
3.修改配置文件props.8t50
测试50个warhouses为例。
driver=com.informix.jdbc.IfxDriver
conn=jdbc:informix-sqli://192.168.100.201:9088/bmdb:informixserver=gbaseserver;ifx_lock_mode_wait=101;CLIENT_LOCALE=zh_CN.GB18030-2000;DB_LOCALE=zh_CN.GB18030-2000;
user=informix
password=informix
warehouses=50
terminals=50
paymentWeight=43
orderStatusWeight=4
deliveryWeight=4
stockLevelWeight=4
runTxnsPerTerminal=10
runMins=20
runMinsBool=true
4.创建模型表:
dbaccess bmdb c.sql
5.加载数据:
./runLoader.sh props.8t50 numWarehouses 50
6.创建索引:dbaccess bmdb ci.sql
./runBenchmark.sh props.8t50
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞0
添加新评论1 条评论
2020-05-26 19:31