While tuning PostgreSQL the benchmark exams can be brutal, they take a long time and are repetitive. The script here wraps pgbench to automate this testing. When using this tool run once with default PostgreSQL configuration, then tune up
Below is the script, you can copy and paste it into your favourite editor, and save it or down load from here.
Warning: file_get_contents(/opt/edoceo.com/www/webroot/pub/pg-bench-suite.php): failed to open stream: No such file or directory in /opt/edoceo.com/www/content/dev/pg-bench-suite.php on line 17