blob: 8982fa37a029f9fa1e4d6adc02a3a13b18680302 [file] [log] [blame]
Yulia Portnovab1a15072015-05-06 14:59:25 +03001#!/bin/bash
2set -e
3set -x
4
Yulia Portnova2b4af7b2015-05-07 15:49:33 +03005while [[ $# > 1 ]]
6do
7key="$1"
8
9case $key in
10 warehouses)
11 WAREHOUSES="$2"
12 shift
13 ;;
14 *)
15 echo "Unknown option $key"
16 exit 1
17 ;;
18esac
19shift
20done
21
Yulia Portnovab1a15072015-05-06 14:59:25 +030022DATABASE_PASSWORD=wally
23DATBASE_USER=root
24DB_NAME=tpcc
25
26cd ~/tpcc-mysql
Yulia Portnova2b4af7b2015-05-07 15:49:33 +030027./tpcc_start -h127.0.0.1 "-d$DB_NAME" "-u$DATBASE_USER" "-p$DATABASE_PASSWORD" -w"WAREHOUSES" -c16 -r10 -l1200 > ~/tpcc-output.log
28echo "TpmC:" `cat ~/tpcc-output.log | grep TpmC | grep -o '[0-9,.]\+'`