From fb0d9dd7dda74855dbf0cae4fd610ac0c8d81d0f Mon Sep 17 00:00:00 2001 From: Andy Atkinson Date: Tue, 9 Mar 2021 15:04:17 -0600 Subject: [PATCH] pgbench: add page (#5388) --- pages/common/pgbench.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/common/pgbench.md diff --git a/pages/common/pgbench.md b/pages/common/pgbench.md new file mode 100644 index 0000000000..9469a1da74 --- /dev/null +++ b/pages/common/pgbench.md @@ -0,0 +1,12 @@ +# pgbench + +> Run a benchmark test on PostgreSQL. +> More information: . + +- Initialize a database with a scale factor of 50 times the default size: + +`pgbench --initialize --scale={{50}} {{database_name}}` + +- Benchmark a database with 10 clients, 2 worker threads, and 10,000 transactions per client: + +`pgbench --clients={{10}} --jobs={{2}} --transactions={{10000}} {{database_name}}`