Copyright: please indicate the source https://blog.csdn.net/baidu_25104885/article/details/90260162
redis-benchmark -h 127.0.0.1 -p 6379 -c 100 -n 100000
Concurrent connections 100, 100 000 requests
redis-benchmark -h 127.0.0.1 -p 6379 -q -d 100
Access 100 bytes of the packet
redis-benchmark -t set,lpush -q -n 100000
Performance Test only (set and LPUSH) certain operations
redis-benchmark -n 100000 -q script load "redis.call('set','foo','bar')"
Test performance access only certain values