cwen0 / bank

Simulate the transfer business.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bank

Simulate the transfer business. You can uses it to test TiDB or MySQL.

Build

# build binary 
make build

The above command will compile a binary named bank and place it in the directory

Usage

Usage of ./bin/bank:
  -accounts int
        the number of accounts (default 1000000)
  -addr string
        the address of db
  -concurrency int
        concurrency worker count (default 200)
  -db string
        database name (default "test")
  -interval duration
        the interval (default 2s)
  -long-txn
        enable long-term transactions (default true)
  -pessimistic
        use pessimistic transaction
  -pw string
        database password
  -retry-limit int
        retry count (default 200)
  -tables int
        the number of the tables (default 1)
  -user string
        database user (default "root")

example:

./bin/bank -addr 127.0.0.1:4000 -db test -user root 

About

Simulate the transfer business.

License:Apache License 2.0


Languages

Language:Go 98.9%Language:Makefile 1.1%