redis基准的压测

redis自己提供的redis-benchmark压测工具,是最快捷最方便的,当然啦,这个工具比较简单,用一些简单的操作和场景去压测

1、对redis读写分离架构进行压测,单实例写QPS+单实例读QPS

redis-3.2.8/src

./redis-benchmark -h 192.168.31.20

-c <clients> Number of parallel connections (default 50)
-n <requests> Total number of requests (default 100000)
-d <size> Data size of SET/GET value in bytes (default 2)

 

 

[root@MiWiFi-R4CM-srv src]# ./redis-benchmark -h 192.168.31.20
====== PING_INLINE ======
100000 requests completed in 0.49 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 1 milliseconds
202429.16 requests per second

====== PING_BULK ======
100000 requests completed in 0.48 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
207039.33 requests per second

====== SET ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 0 milliseconds
201207.23 requests per second

====== GET ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
202020.20 requests per second

====== INCR ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.99% <= 1 milliseconds
100.00% <= 1 milliseconds
201612.91 requests per second

====== LPUSH ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.99% <= 1 milliseconds
100.00% <= 1 milliseconds
198807.16 requests per second

====== RPUSH ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
200803.22 requests per second

====== LPOP ======
100000 requests completed in 0.48 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 0 milliseconds
207468.88 requests per second

====== RPOP ======
100000 requests completed in 0.49 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 0 milliseconds
204081.62 requests per second

====== SADD ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 0 milliseconds
199203.20 requests per second

====== HSET ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
202020.20 requests per second

====== SPOP ======
100000 requests completed in 0.50 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 1 milliseconds
100.00% <= 1 milliseconds
202020.20 requests per second

====== LPUSH (needed to benchmark LRANGE) ======
100000 requests completed in 0.51 seconds
50 parallel clients
3 bytes payload
keep alive: 1

100.00% <= 0 milliseconds
197238.64 requests per second

====== LRANGE_100 (first 100 elements) ======
100000 requests completed in 0.52 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
192307.70 requests per second

====== LRANGE_300 (first 300 elements) ======
100000 requests completed in 0.52 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
193423.59 requests per second

====== LRANGE_500 (first 450 elements) ======
100000 requests completed in 0.52 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
192307.70 requests per second

====== LRANGE_600 (first 600 elements) ======
100000 requests completed in 0.54 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.72% <= 1 milliseconds
99.90% <= 2 milliseconds
99.95% <= 6 milliseconds
100.00% <= 6 milliseconds
185528.77 requests per second

====== MSET (10 keys) ======
100000 requests completed in 0.58 seconds
50 parallel clients
3 bytes payload
keep alive: 1

99.98% <= 1 milliseconds
100.00% <= 1 milliseconds
171821.30 requests per second

上一篇:controlfile 备份到trace文件例子


下一篇:中国大学零基础学Java语言练习题