[local]:889416 postgres=# \timing Timing is on. [local]:889416 postgres=# SET scram_iterations TO 1; SET Time: 0.533 ms [local]:889416 postgres=# CREATE USER scram_1 WITH password 'hello'; CREATE ROLE Time: 1.055 ms [local]:889416 postgres=# SET scram_iterations TO 100000; SET Time: 0.320 ms [local]:889416 postgres=# CREATE USER scram_4096 WITH password 'hello'; CREATE ROLE Time: 9.182 ms [local]:889416 postgres=# SET scram_iterations TO 100000; SET Time: 0.430 ms [local]:889416 postgres=# CREATE USER scram_100000 WITH password 'hello'; CREATE ROLE Time: 214.233 ms
$ pgbench -n -T 30 -f pgbench-empty.sql -C -U scram_1 postgres pgbench (16beta1) transaction type: pgbench-empty.sql scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 maximum number of tries: 1 duration: 30 s number of transactions actually processed: 4088 number of failed transactions: 0 (0.000%) latency average = 7.340 ms average connection time = 7.335 ms tps = 136.248832 (including reconnection times)
$ pgbench -n -T 30 -f pgbench-empty.sql -C -U scram_4096 postgres pgbench (16beta1) transaction type: pgbench-empty.sql scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 maximum number of tries: 1 duration: 30 s number of transactions actually processed: 2106 number of failed transactions: 0 (0.000%) latency average = 14.247 ms average connection time = 14.241 ms tps = 70.191579 (including reconnection times)
$ pgbench -n -T 30 -f pgbench-empty.sql -C -U scram_100000 postgres pgbench (16beta1) transaction type: pgbench-empty.sql scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 maximum number of tries: 1 duration: 30 s number of transactions actually processed: 153 number of failed transactions: 0 (0.000%) latency average = 196.268 ms average connection time = 196.258 ms tps = 5.095077 (including reconnection times)