[Mysql performance test Tpcc-mysql]

TPC (Tracsaction Processing Performance Council) is a non-profit organization that evaluates the software and hardware performance of large database systems. TPC-C is developed by the TPC Association to test the performance of typical complex OLTP systems; Tpcc-MySQL is a Percona is a product derived from tpcc and is dedicated to mysql benchmarking. Its source code is placed on bazaar, so the bazaar client needs to be installed first.

 

 

Tpcc-mysql is a product derived from percona based on tpcc. It is dedicated to mysql benchmark testing. Its source code is placed in bazaar (Bazaar is a distributed version control system that uses the GPL license agreement and can run on Windows, GNU/Linux, UNIX and On Mac OS systems. Bazaar is sponsored by Canonical Corporation (Ubuntu parent company), so you also need to install the bazaar client first.

 

Usage of tpcc_start

Usage: 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 -t trx_file

Common parameter description:

-w specifies the number of warehouses, that is, to test several data warehouses, such as testing 100 data warehouses created by Qiangan

-c specifies the number of concurrent connections

-r specifies the warmup time before starting the test. After the warmup, the test effect is better and more accurate

-l specifies the test duration

-I specifies the interval for generating reports

-f specifies the generated report filename

 

 

1)Build binaries

cd src ; make ( you should have mysql_config available in $PATH)

 

 

2)Load data

create database mysqladmin create tpcc1000

create tables mysql tpcc1000 < create_table.sql

create indexes and FK ( this step can be done after loading data) mysql tpcc1000 < add_fkey_idx.sql

populated date

  a).simple step tpcc_load -h127.0.0.1 -d tpcc1000 -u root -p "" -w 1000 |hostname:port| |dbname| |user| |password| |WAREHOUSES| ref. tpcc_load --help for all options

  b).load data in parallel check load.sh script

 

3)Start benchmark

./tpcc_start -h127.0.0.1 -P3306 -dtpcc1000 -uroot -w1000 -c32 -r10 -l10800

|hostname| |port| |dbname| |user| |WAREHOUSES| |CONNECTIONS| |WARMUP TIME| |BENCHMARK TIME|

ref. tpcc_start --help for all options

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326393709&siteId=291194637