Pgbench
跳至導覽
跳至搜尋
./pgbench -h 192.168.10.156 -U pgbench -c 1 -T 300 -r pgbench
-c clients 模擬的客戶數,也就是並發資料庫會話數目。預設是 1。 -t transactions 每個客戶端跑的事務數目。預設是 10。 starting vacuum...end. transaction type: <builtin: TPC-B (sort of)> scaling factor: 714 query mode: simple number of clients: 1 number of threads: 1 duration: 300 s number of transactions actually processed: 62602 latency average = 4.792 ms tps = 208.672446 (including connections establishing) tps = 208.675069 (excluding connections establishing)