test_perf_pgbench: switch to server-side data generation (#3058)

To offload the network and reduce its impact, I suggest switching to
server-side data generation for the pgbench initialize workflow.
This commit is contained in:
Alexander Bayandin
2022-12-18 00:02:04 +00:00
committed by GitHub
parent 61194ab2f4
commit 12e6f443da
2 changed files with 43 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ from fixtures.utils import get_scale_for_db
@enum.unique
class PgBenchLoadType(enum.Enum):
INIT = "init"
SIMPLE_UPDATE = "simple_update"
SIMPLE_UPDATE = "simple-update"
SELECT_ONLY = "select-only"
@@ -94,7 +94,9 @@ def run_test_pgbench(env: PgCompare, scale: int, duration: int, workload_type: P
if workload_type == PgBenchLoadType.INIT:
# Run initialize
init_pgbench(env, ["pgbench", f"-s{scale}", "-i", connstr], password=password)
init_pgbench(
env, ["pgbench", f"-s{scale}", "-i", "-I", "dtGvp", connstr], password=password
)
if workload_type == PgBenchLoadType.SIMPLE_UPDATE:
# Run simple-update workload