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)