antirez/redis — Issue #133: wierd benchmark when replication is used
Author: donzell
Created: 2011-10-11 08:50:48+00:00
State: open

version :2.2.14 stable.
When i don't use replication ,all is ok.The "set" operation is rather fast.
./bin/redis-benchmark-new -c 400 -n 100000 -d 2000 -q
PING (inline): 108342.37 requests per second
PING: 107296.14 requests per second
SET: 67340.07 requests per second
GET: 96899.23 requests per second
INCR: 99403.58 requests per second
LPUSH: 35161.74 requests per second
LPOP: 91074.68 requests per second
SADD: 88967.98 requests per second
SPOP: 103626.95 requests per second

My configure :both master and slave won't save rdb file and both shutdown aof.
here is benchmark of the master.

./bin/redis-benchmark-new -c 400 -n 100000 -d 2000 -q
PING (inline): 105042.02 requests per second
PING: 106044.54 requests per second
SET: 2548.16 requests per second
GET: 72833.21 requests per second
INCR: 66533.60 requests per second
LPUSH: 39277.30 requests per second
LPOP: 55679.29 requests per second
SADD: 79554.50 requests per second
SPOP: 97276.27 requests per second

Why is the "set" operation so slow ?