The Redis self-redis-benchmark test tool is used to test the performance of Redis, Redis-benchmark can simulate multiple clients sending multiple requests simultaneously.
Usage:redis-benchmark [-H
-Q silent mode, showing only the value of requests per second
-N Total number of requests initiated
1. Send 500,000 requests to 6379 of this Redis instance
Redis-benchmark-p 6379-q-N 500000
Ping_inline: 66365.81 requests per secondping_bulk: 61440.16 requests per secondset: 55401.66 requests per secondget: 66693.34 requests per secondincr: 62790.41 requests per secondlpush: 57836.90 requests per secondlpop: 68587.11 requests per secondsadd: 69280.87 requests per secondSPOP: 69803.16 requests per secondLPUSH (Needed to benchmark lrange): 69473.39 requests per secondlrange_100 (first 100 elements): 35216.23 requests per secondLRANGE_300 (first 300 elements): 15170.36 requests per secondLRANGE_500 (first 450 elements): 10984.18 requests per secondLRANGE_600 (first 600 elements): 8499.21 requests per secondmset (10&NBSp;keys): 44980.21 requests per second
2. Test only a few commands
Redis-benchmark-p 26379-q-N 500000-t set,get,mset
3. Select the size of the key space
This article is from the Linux SA John blog, so be sure to keep this source http://john88wang.blog.51cto.com/2165294/1743805
Redis Performance Test