一、 安装

1、 下载.tar包的tpcc-mysql

2、 上传到服务器(rz)

3、 解压(tar -zxvf tpcc-mysql-src.tar)

二、 准备数据库

进入数据库,运行create_table.sql,add_fkey_idx.sql这两张表(这两张表通过tpcc-mysql解压获取)

三、 使用ttpc_load灌入测试数据(灌入仓库时间有点长)

tpcc_load host 'dbname' username password warehouse

(warehouse指要创建的仓库数量)

四、 开始测试

tpcc_start -h host  -Pport -d dbname -u username -p password  -w 10 -c 10 -r 300 -l 1800

-d 测试库

-u 用户名

-p 密码

-w 使用多少个数据仓库

-c 测试的并发数

-r 预热几秒

-l 运行测试多长时间

tpcc-mysql 安装及使用

 

(如果需要删除已创建的表,这个时候drop_cons.sql就有用了)

 

相关文章:

  • 2021-10-07
  • 2021-11-30
  • 2021-06-28
  • 2022-01-12
  • 2021-09-06
  • 2021-04-10
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2022-02-27
  • 2022-12-23
  • 2021-09-14
  • 2021-10-09
  • 2021-11-20
  • 2022-03-01
相关资源
相似解决方案