-
Notifications
You must be signed in to change notification settings - Fork 11
/
README
36 lines (30 loc) · 926 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
create tables
-------------
PostgreSQL:
mysql -f src/scripts/create-tables.sql
MySQL:
mysql < src/scripts/create-tables.sql
load data
----------
PostgreSQL:
src/core/datagen -t postgresql --dbname=tpcc --user=dcwang --host=localhost -w 100 -j 10
MySQL:
src/core/datagen -t mysql --dbname=tpcc --user=dcwang --host=127.0.0.1 -w 100 -j 10
create indexes
--------------
Execute Use src/scripts/create-indexes.sql using SQL shell, eg.
psql -f src/scripts/create-indexes.sql
analyze;
check plans
-----------
PostgreSQL:
PGPORT=5566 PGHOST=localhost DBT2DBNAME=tpcc src/scripts/pgsql/plans -o plans.out
run test
--------
PostgreSQL:
sqlbench/sqlbench -t postgresql --dbname=tpcc --user=tpcc --host=localhost --port=5566 -w100 -c32 -l7200 -r1200
MySQL:
sqlbench/sqlbench -t mysql --dbname=tpcc --user=tpcc --host=127.0.0.1 --port=3306 -w100 -c32 -l7200 -r1200
test result
-----------
sqlbench/src/utils/post_process -l mix.log