tpcc 压测工具准备与测试

准备工作:

1、mysql安装

 

步骤:

1、在数据库中预创建一个库

2、create_table.sql建表

3、./tpcc_load加载数据

./tpcc_load -h127.0.0.1 -ddb1 -uroot -p123456 -w10

4、tpcc_start压测:

tpcc_start -h server_host -P port -d database_name -u mysql_user -p mysql_password -w warehouses -c connections -r warmup_time -l running_time -i report_interval -f report_file
各个参数的用法:
-h server_host: 服务器名
-P port : 端口号,默认为3306
-d database_name: 数据库名
-u mysql_user : 用户名
-p mysql_password : 密码
-w warehouses: 仓库的数量
-c connections : 指定并发连接数,默认为1
-r warmup_time : 热身时间,单位:s,默认为10s ,热身是为了将数据加载到内存。
-l running_time: 测试时间,单位:s,默认为20s
-i report_interval: 指定生成报告间隔时长
-f report_file: 测试结果输出文件

 

参考:

https://blog.csdn.net/Vaski/article/details/89335172?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control

 

https://blog.csdn.net/laiyijian/article/details/70332409?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control

posted on 2020-12-30 15:45  石墨方  阅读(578)  评论(0编辑  收藏  举报

导航