Re: pgbench stats per script & other stuff - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: pgbench stats per script & other stuff
Date
Msg-id 55AEDDA4.8020009@agliodbs.com
Whole thread Raw
In response to pgbench stats per script & other stuff  (Fabien <coelho@cri.ensmp.fr>)
Responses Re: pgbench stats per script & other stuff
List pgsql-hackers
On 07/21/2015 09:29 AM, Fabien COELHO wrote:
> Maybe -f file.sql:weight (yuk from my point of view, but it can be done
> easily).

Maybe it's past time for pgbench to have a config file?

Given that we want to define some per-workload options, the config file
would probably need to be YAML or JSON, e.g.:

pgbench --config=workload1.pgb

workload1.pgb
-------------

database: bench
port: 5432
host: localhost
user: josh
clients : 16
threads : 4
response-times : on
stats-level: script
script1:file: script1.benchweight: 3
script2:file: script2.benchweight: 1
the above would execute a pgbench with 16 clients, 4 threads, "script1"
three times as often as script2, and report stats at the script (rather
than SQL statement) level.




-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: brin index vacuum versus transaction snapshots
Next
From: Qingqing Zhou
Date:
Subject: Planner debug views