Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/percona-lab/sysbench-tpcc
Sysbench scripts to generate a tpcc-like workload for MySQL and PostgreSQL
https://github.com/percona-lab/sysbench-tpcc
benchmark mysql postgresql sysbench
Last synced: 6 days ago
JSON representation
Sysbench scripts to generate a tpcc-like workload for MySQL and PostgreSQL
- Host: GitHub
- URL: https://github.com/percona-lab/sysbench-tpcc
- Owner: Percona-Lab
- License: apache-2.0
- Created: 2018-02-20T18:04:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-05T15:33:40.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T19:11:53.242Z (14 days ago)
- Topics: benchmark, mysql, postgresql, sysbench
- Language: Lua
- Homepage:
- Size: 131 KB
- Stars: 295
- Watchers: 15
- Forks: 105
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sysbench-tpcc
TPCC-like workload for sysbench 1.0.x.
**Make sure you are using sysbench 1.0.14 or better!**# prepare data and tables
`
./tpcc.lua --mysql-socket=/tmp/mysql.sock --mysql-user=root --mysql-db=sbt --time=300 --threads=64 --report-interval=1 --tables=10 --scale=100 --db-driver=mysql prepare
`## prepare for RocksDB
`
./tpcc.lua --mysql-socket=/tmp/mysql.sock --mysql-user=root --mysql-db=sbr --time=3000 --threads=64 --report-interval=1 --tables=10 --scale=100 --use_fk=0 --mysql_storage_engine=rocksdb --mysql_table_options='COLLATE latin1_bin' --trx_level=RC --db-driver=mysql prepare
`# Run benchmark
`
./tpcc.lua --mysql-socket=/tmp/mysql.sock --mysql-user=root --mysql-db=sbt --time=300 --threads=64 --report-interval=1 --tables=10 --scale=100 --db-driver=mysql run
`# Cleanup
`
./tpcc.lua --mysql-socket=/tmp/mysql.sock --mysql-user=root --mysql-db=sbt --time=300 --threads=64 --report-interval=1 --tables=10 --scale=100 --db-driver=mysql cleanup
`