-
Build binaries
cd src ; make
( you should have mysql_config available in $PATH)
-
Load data
- create database bash ./create_db.sh
- 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
- populate data
- 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 - load data in parallel check load.sh script
- simple step
-
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
forked from Percona-Lab/tpcc-mysql
-
Notifications
You must be signed in to change notification settings - Fork 2
hewei-chn/tpcc-mysql
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 85.3%
- Shell 12.6%
- Python 1.6%
- Other 0.5%