-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage_scenario_pg.yml
43 lines (39 loc) · 1.63 KB
/
usage_scenario_pg.yml
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
37
38
39
40
41
42
43
---
name: HammerDB Postgres benchmark
author: Didi Hoffmann <didi@green-coding.berlin)
description: Benchmarks postgresql with HammerDB using TPC-C
compose-file: !include compose.yml
sci:
R_d: TPC-C SQL-op
services:
mariadb: # empty key will remove the unused service
mysql: # empty key will remove the service
flow:
- name: Build Warehouses
container: hammerdb_container
commands:
- type: console
note: RUN HAMMERDB BUILD
command: ./hammerdbcli auto /tmp/repo/pg/pg_tprocc_buildschema.tcl | tee /dev/stderr | awk '/System achieved [0-9]+ NOPM/ { match($0, /System achieved [0-9]+ NOPM/); printf("GMT_SCI_R=%s\n", substr($0, RSTART+16, RLENGTH-21)) }'
shell: sh
log-stdout: true
read-sci-stdout: true
- name: Query Warehouses
container: hammerdb_container
commands:
- type: console
note: RUN HAMMERDB SELECTS
command: ./hammerdbcli auto /tmp/repo/pg/pg_tprocc_run.tcl | tee /dev/stderr | awk '/System achieved [0-9]+ NOPM/ { match($0, /System achieved [0-9]+ NOPM/); printf("GMT_SCI_R=%s\n", substr($0, RSTART+16, RLENGTH-21)) }'
shell: sh
log-stdout: true
read-sci-stdout: true
- name: Drop Warehouses
container: hammerdb_container
commands:
- type: console
note: RUN HAMMERDB DROP
command: ./hammerdbcli auto /tmp/repo/pg/pg_tprocc_deleteschema.tcl | tee /dev/stderr | awk '/System achieved [0-9]+ NOPM/ { match($0, /System achieved [0-9]+ NOPM/); printf("GMT_SCI_R=%s\n", substr($0, RSTART+16, RLENGTH-21)) }'
note: DROP HAMMERDB SCHEMA
shell: sh
log-stdout: true
read-sci-stdout: true