sheeva@plug:~$ redis-benchmark -q -h localhost # TCP ohne Pipelining PING_INLINE: 123001.23 requests per second, p50=0.215 msec PING_MBULK: 118906.06 requests per second, p50=0.215 msec SET: 119760.48 requests per second, p50=0.215 msec GET: 119474.31 requests per second, p50=0.215 msec INCR: 119474.31 requests per second, p50=0.215 msec LPUSH: 120481.93 requests per second, p50=0.215 msec RPUSH: 119047.62 requests per second, p50=0.215 msec LPOP: 120481.93 requests per second, p50=0.215 msec RPOP: 120481.93 requests per second, p50=0.215 msec SADD: 120481.93 requests per second, p50=0.215 msec HSET: 119189.52 requests per second, p50=0.215 msec SPOP: 119474.31 requests per second, p50=0.215 msec ZADD: 118623.96 requests per second, p50=0.215 msec ZPOPMIN: 120048.02 requests per second, p50=0.215 msec LPUSH (needed to benchmark LRANGE): 120048.02 requests per second, p50=0.215 msec LRANGE_100 (first 100 elements): 74794.31 requests per second, p50=0.335 msec LRANGE_300 (first 300 elements): 34614.05 requests per second, p50=0.711 msec LRANGE_500 (first 450 elements): 25700.33 requests per second, p50=0.967 msec LRANGE_600 (first 600 elements): 20242.91 requests per second, p50=1.215 msec MSET (10 keys): 124378.11 requests per second, p50=0.223 msec sheeva@plug:~$ redis-benchmark -q -s /run/redis/redis.sock # UNIX-Socket ohne Pipelining PING_INLINE: 231481.47 requests per second, p50=0.103 msec PING_MBULK: 173913.05 requests per second, p50=0.143 msec SET: 173913.05 requests per second, p50=0.143 msec GET: 175131.36 requests per second, p50=0.143 msec INCR: 175131.36 requests per second, p50=0.143 msec LPUSH: 176366.86 requests per second, p50=0.143 msec RPUSH: 175438.59 requests per second, p50=0.143 msec LPOP: 173611.12 requests per second, p50=0.143 msec RPOP: 172117.05 requests per second, p50=0.143 msec SADD: 172711.58 requests per second, p50=0.143 msec HSET: 169779.30 requests per second, p50=0.151 msec SPOP: 172711.58 requests per second, p50=0.143 msec ZADD: 172413.80 requests per second, p50=0.143 msec ZPOPMIN: 173913.05 requests per second, p50=0.143 msec LPUSH (needed to benchmark LRANGE): 175438.59 requests per second, p50=0.143 msec LRANGE_100 (first 100 elements): 98716.68 requests per second, p50=0.263 msec LRANGE_300 (first 300 elements): 38051.75 requests per second, p50=0.647 msec LRANGE_500 (first 450 elements): 28240.61 requests per second, p50=0.879 msec LRANGE_600 (first 600 elements): 21920.21 requests per second, p50=1.135 msec MSET (10 keys): 180505.41 requests per second, p50=0.143 msec sheeva@plug:~$ pgbench -i dropping old tables... creating tables... generating data (client-side)... 100000 of 100000 tuples (100%) done (elapsed 0.05 s, remaining 0.00 s) vacuuming... creating primary keys... done in 0.20 s (drop tables 0.01 s, create tables 0.01 s, client-side generate 0.07 s, vacuum 0.05 s, primary keys 0.06 s). sheeva@plug:~$ pgbench -h /run/postgresql/ # mit Socket pgbench (14.7 (Ubuntu 14.7-0ubuntu0.22.04.1)) starting vacuum...end. transaction type: scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 number of transactions per client: 10 number of transactions actually processed: 10/10 latency average = 3.791 ms initial connection time = 1.426 ms tps = 263.782643 (without initial connection time) sheeva@plug:~$ pgbench -h localhost # TCP pgbench (14.7 (Ubuntu 14.7-0ubuntu0.22.04.1)) starting vacuum...end. transaction type: scaling factor: 1 query mode: simple number of clients: 1 number of threads: 1 number of transactions per client: 10 number of transactions actually processed: 10/10 latency average = 3.381 ms initial connection time = 8.466 ms tps = 295.779230 (without initial connection time) sheeva@plug:~$ redis-benchmark -q -s /run/redis/redis.sock -P 5 # UNIX-Socket mit Pipelining PING_INLINE: 1063829.88 requests per second, p50=0.111 msec PING_MBULK: 840336.12 requests per second, p50=0.151 msec SET: 877193.00 requests per second, p50=0.159 msec GET: 877193.00 requests per second, p50=0.151 msec INCR: 854700.88 requests per second, p50=0.151 msec LPUSH: 869565.19 requests per second, p50=0.223 msec RPUSH: 900900.88 requests per second, p50=0.215 msec LPOP: 877193.00 requests per second, p50=0.223 msec RPOP: 892857.12 requests per second, p50=0.215 msec SADD: 854700.88 requests per second, p50=0.151 msec HSET: 892857.12 requests per second, p50=0.215 msec SPOP: 854700.88 requests per second, p50=0.151 msec ZADD: 826446.31 requests per second, p50=0.239 msec ZPOPMIN: 877193.00 requests per second, p50=0.143 msec LPUSH (needed to benchmark LRANGE): 877193.00 requests per second, p50=0.223 msec LRANGE_100 (first 100 elements): 166666.66 requests per second, p50=0.751 msec LRANGE_300 (first 300 elements): 46641.79 requests per second, p50=2.655 msec LRANGE_500 (first 450 elements): 27262.81 requests per second, p50=5.127 msec LRANGE_600 (first 600 elements): 16252.24 requests per second, p50=9.727 msec ) MSET (10 keys): 398406.41 requests per second, p50=0.575 msec sheeva@plug:~$ redis-benchmark -q -h localhost -P 5 # TCP mit Pipelining PING_INLINE: 819672.12 requests per second, p50=0.159 msec PING_MBULK: 757575.75 requests per second, p50=0.159 msec SET: 598802.44 requests per second, p50=0.231 msec GET: 588235.31 requests per second, p50=0.223 msec INCR: 595238.12 requests per second, p50=0.223 msec LPUSH: 584795.31 requests per second, p50=0.367 msec RPUSH: 598802.44 requests per second, p50=0.343 msec LPOP: 581395.31 requests per second, p50=0.367 msec RPOP: 598802.44 requests per second, p50=0.351 msec SADD: 598802.44 requests per second, p50=0.215 msec HSET: 591716.00 requests per second, p50=0.359 msec SPOP: 598802.44 requests per second, p50=0.215 msec ZADD: 568181.81 requests per second, p50=0.375 msec ZPOPMIN: 598802.44 requests per second, p50=0.215 msec LPUSH (needed to benchmark LRANGE): 588235.31 requests per second, p50=0.367 msec LRANGE_100 (first 100 elements): 157728.70 requests per second, p50=0.799 msec LRANGE_300 (first 300 elements): 45351.48 requests per second, p50=2.727 msec LRANGE_500 (first 450 elements): 27616.68 requests per second, p50=5.839 msec LRANGE_600 (first 600 elements): 24009.60 requests per second, p50=5.455 msec MSET (10 keys): 314465.41 requests per second, p50=0.775 msec