压测redis吞吐量

./redis-benchmark -h 127.0.0.1 -p 6379 -c 100 -n 100000

上述指令:

redis-benchmark 在reids中src目录下

h代表IP地址

p代表端口

c代表100个线程同时请求

n代表100000个请求

备注

还可以使用

./redis-benchmark -h 127.0.0.1 -p 6379 -d 100

-d表示每次存取100个字节

./redis-benchmark -h 127.0.0.1 -t set,lpush -p 6379 

压测指定指令

 

 

具体压测结果

====== PING_INLINE ======

  100000 requests completed in 0.80 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





97.66% <= 1 milliseconds

99.96% <= 2 milliseconds

100.00% <= 2 milliseconds

125786.16 requests per second





====== PING_BULK ======

  100000 requests completed in 0.82 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





99.10% <= 1 milliseconds

99.85% <= 2 milliseconds

99.97% <= 3 milliseconds

100.00% <= 3 milliseconds

121951.22 requests per second





====== SET ======

  100000 requests completed in 0.79 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





96.88% <= 1 milliseconds

99.78% <= 2 milliseconds

100.00% <= 3 milliseconds

100.00% <= 3 milliseconds

125944.58 requests per second





====== GET ======

  100000 requests completed in 0.84 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





96.49% <= 1 milliseconds

99.97% <= 2 milliseconds

100.00% <= 2 milliseconds

119331.74 requests per second





====== INCR ======

  100000 requests completed in 0.81 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





98.27% <= 1 milliseconds

100.00% <= 2 milliseconds

100.00% <= 2 milliseconds

124069.48 requests per second





====== LPUSH ======

  100000 requests completed in 0.89 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





96.08% <= 1 milliseconds

99.79% <= 2 milliseconds

99.80% <= 3 milliseconds

99.84% <= 4 milliseconds

99.90% <= 11 milliseconds

99.97% <= 12 milliseconds

100.00% <= 12 milliseconds

112739.57 requests per second





====== LPOP ======

  100000 requests completed in 0.95 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





96.37% <= 1 milliseconds

99.90% <= 2 milliseconds

99.97% <= 3 milliseconds

100.00% <= 3 milliseconds

105152.48 requests per second





====== SADD ======

  100000 requests completed in 0.90 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





95.28% <= 1 milliseconds

99.83% <= 2 milliseconds

100.00% <= 2 milliseconds

110497.24 requests per second





====== SPOP ======

  100000 requests completed in 0.82 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





96.99% <= 1 milliseconds

99.94% <= 2 milliseconds

100.00% <= 2 milliseconds

121359.23 requests per second





====== LPUSH (needed to benchmark LRANGE) ======

  100000 requests completed in 0.80 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





98.54% <= 1 milliseconds

100.00% <= 1 milliseconds

125313.29 requests per second





====== LRANGE_100 (first 100 elements) ======

  100000 requests completed in 1.76 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





75.06% <= 1 milliseconds

99.22% <= 2 milliseconds

99.96% <= 3 milliseconds

99.99% <= 4 milliseconds

100.00% <= 4 milliseconds

56915.20 requests per second





====== LRANGE_300 (first 300 elements) ======

  100000 requests completed in 4.87 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





0.00% <= 1 milliseconds

15.38% <= 2 milliseconds

80.15% <= 3 milliseconds

98.65% <= 4 milliseconds

99.91% <= 5 milliseconds

99.95% <= 6 milliseconds

99.97% <= 7 milliseconds

99.99% <= 8 milliseconds

100.00% <= 9 milliseconds

100.00% <= 9 milliseconds

20521.24 requests per second





====== LRANGE_500 (first 450 elements) ======

  100000 requests completed in 7.11 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





0.00% <= 1 milliseconds

0.04% <= 2 milliseconds

29.14% <= 3 milliseconds

70.58% <= 4 milliseconds

91.14% <= 5 milliseconds

98.46% <= 6 milliseconds

99.85% <= 7 milliseconds

99.93% <= 8 milliseconds

99.97% <= 9 milliseconds

99.98% <= 10 milliseconds

99.98% <= 11 milliseconds

100.00% <= 12 milliseconds

100.00% <= 12 milliseconds

14068.66 requests per second





====== LRANGE_600 (first 600 elements) ======

  100000 requests completed in 8.03 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





0.00% <= 1 milliseconds

0.04% <= 2 milliseconds

1.06% <= 3 milliseconds

56.06% <= 4 milliseconds

90.51% <= 5 milliseconds

97.65% <= 6 milliseconds

99.26% <= 7 milliseconds

99.73% <= 8 milliseconds

99.93% <= 9 milliseconds

99.97% <= 10 milliseconds

99.98% <= 11 milliseconds

100.00% <= 12 milliseconds

100.00% <= 12 milliseconds

12450.20 requests per second





====== MSET (10 keys) ======

  100000 requests completed in 1.10 seconds

  100 parallel clients

  3 bytes payload

  keep alive: 1





60.95% <= 1 milliseconds

99.22% <= 2 milliseconds

99.90% <= 3 milliseconds

99.91% <= 5 milliseconds

100.00% <= 5 milliseconds

91157.70 requests per second



 

如其中get请求

压测redis吞吐量_第1张图片

上面的信息表示 100000个请求在0.84秒内完成 每个请求3个字节,1秒中完成119331个请求

 

你可能感兴趣的:(性能测试调优Jmeter,ab)