https://github.com/percona-lab/go-tpcc
https://github.com/percona-lab/go-tpcc
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/percona-lab/go-tpcc
- Owner: Percona-Lab
- License: apache-2.0
- Created: 2020-09-29T11:00:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T14:23:00.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T00:13:03.426Z (about 1 year ago)
- Language: Go
- Size: 9.11 MB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-tpcc
## Preparing dataset
```
./go-tpcc prepare --threads 10 --warehouses 20 --uri mongodb://localhost:27017 --db DatabaseName
```
## Running test
```
./go-tpcc run --threads 1 --warehouses 2 --uri mongodb://localhost:27017 --db DatabaseName --time 200 --trx --report-format json --percentile 95 --report-interval 1 --percent-fail 0
./go-tpcc help run
Run
Usage:
go-tpcc run [flags]
Flags:
-h, --help help for run
--percent-fail int How much % of New Order trxs should fail [0-100]
--percentile int Percentile for latency reporting (default 95)
--report-format string default|json|csv (default "default")
--report-interval int Report interval (default 1)
--scalefactor float Scale-factor (default 1)
--threads int Amount of threads that will be used when preparing. min(threads, warehouses) will be used at most (default 8)
--time int How long to run the test (default 10)
--warehouses int Number of warehouses to generate the data (default 10)
Global Flags:
--db string database name to use
--trx use trx?. false by default
--uri string DSN
```