Unverified Commit c010573e authored by nownabe's avatar nownabe

📝 Update README

parent c7e27310
......@@ -27,6 +27,14 @@ $ terraform apply
# Benchmark Details
Configure MySQL credentials before tests.
```bash
$ echo "export MYSQL_USER=user"
$ echo "export MYSQL_PASS=password"
$ echo "export MYSQL_HOST=mysql-host"
```
## tpcc-mysql
### Preparation
......@@ -46,18 +54,31 @@ Download test script.
$ curl -sSL -o ${HOME}/run-tpcc.sh https://gitlab.com/nownabe/rdb-bench/raw/master/run-tpcc.sh
```
Configure MySQL credentials.
### Test
```bash
$ echo "export MYSQL_USER=user"
$ echo "export MYSQL_PASS=password"
$ echo "export MYSQL_HOST=mysql-host"
$ bash ${HOME}/run-tpcc.sh
```
### Test
Then see `${HOME}/log/tpcc`.
## sysbench
Install sysbench.
```bash
$ bash ${HOME}/run-tpcc.sh
$ curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.rpm.sh | sudo bash
$ sudo yum -y install sysbench
```
Then see `${HOME}/log/tpcc`.
Download test script.
```bash
$ curl -sSL -o ${HOME}/run-sysbench.sh https://gitlab.com/nownabe/rdb-bench/raw/master/run-sysbench.sh
```
Run test.
```bash
$ bash ${HOME}/run-sysbench.sh
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment