1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-06 13:06:00 +02:00

pgbench: add page (#5388)

This commit is contained in:
Andy Atkinson 2021-03-09 15:04:17 -06:00 committed by GitHub
parent d5c493d866
commit fb0d9dd7dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
pages/common/pgbench.md Normal file
View file

@ -0,0 +1,12 @@
# pgbench
> Run a benchmark test on PostgreSQL.
> More information: <https://www.postgresql.org/docs/10/pgbench.html>.
- 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}}`