I have very poor Redis performance

June 24, 2018 134 views
Redis Ubuntu

20$ Droplet: 2vcpu 4gb

$ redis-benchmark -q -n 100000
PINGINLINE: 8072.33 requests per second
PING
BULK: 7193.21 requests per second
SET: 7803.96 requests per second
GET: 8082.11 requests per second
INCR: 7913.27 requests per second
LPUSH: 7950.39 requests per second
RPUSH: 7481.67 requests per second
LPOP: 8173.94 requests per second
RPOP: 8316.70 requests per second
SADD: 8107.01 requests per second
HSET: 8387.85 requests per second
SPOP: 8164.60 requests per second
LPUSH (needed to benchmark LRANGE): 8971.02 requests per second
LRANGE100 (first 100 elements): 5461.50 requests per second
LRANGE
300 (first 300 elements): 3261.90 requests per second
LRANGE500 (first 450 elements): 2454.11 requests per second
LRANGE
600 (first 600 elements): 2073.96 requests per second
MSET (10 keys): 7249.53 requests per second

1 Answer

I resolved this by switching from ubuntu 18.04 to 16.04.

Have another answer? Share your knowledge.