Redis压测命令

1、redis-benchmark

100个并发连接,100000个请求:

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

存取为100个字节的数据包:

redis-benchmark -h 127.0.0.1 -p 6379 -q -d 100

只测试某些操作的性能:

redis-benchmark -t set,lpush -q -n 100000

只测试某些数值存取的性能

redis-benchmark -n 100000 -q script load "redis.call('set','foo','bar')"

原文地址:https://www.cnblogs.com/da19951208/p/10613004.html