redis-benchmark
benchmark]# redis-benchmark -h 127.0.0.1 -p 6382 -c 500 -n 200000
-n Total number of requests (default 100000)
-c 500个并发连接,
其他参数请通过
redis-benchmark --help
以下是测试执行的结果
====== PING_INLINE ======
200000 requests completed in 2.43 seconds
500 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
0.01% <= 2 milliseconds
59.27% <= 3 milliseconds
96.02% <= 4 milliseconds
98.71% <= 5 milliseconds
99.21% <= 6 milliseconds
99.62% <= 7 milliseconds
99.83% <= 8 milliseconds
99.91% <= 9 milliseconds
99.98% <= 10 milliseconds
100.00% <= 10 milliseconds
82406.26 requests per second
====== PING_BULK ======
200000 requests completed in 2.21 seconds
500 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
4.31% <= 2 milliseconds
64.54% <= 3 milliseconds
92.25% <= 4 milliseconds
96.51% <= 5 milliseconds
98.08% <= 6 milliseconds
98.93% <= 7 milliseconds
99.61% <= 8 milliseconds
99.95% <= 9 milliseconds
100.00% <= 9 milliseconds
90456.80 requests per second
====== SET ======
200000 requests completed in 2.44 seconds
500 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 2 milliseconds
29.00% <= 3 milliseconds
91.41% <= 4 milliseconds
96.02% <= 5 milliseconds
98.61% <= 6 milliseconds
99.38% <= 7 milliseconds
99.57% <= 8 milliseconds
99.65% <= 9 milliseconds
99.73% <= 10 milliseconds
99.83% <= 11 milliseconds
99.95% <= 12 milliseconds
99.96% <= 13 milliseconds
99.98% <= 14 milliseconds
100.00% <= 14 milliseconds
81900.09 requests per second
====== GET ======
200000 requests completed in 2.46 seconds
500 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
0.02% <= 2 milliseconds
38.60% <= 3 milliseconds
91.61% <= 4 milliseconds
94.76% <= 5 milliseconds
96.69% <= 6 milliseconds
98.11% <= 7 milliseconds
99.30% <= 8 milliseconds
99.72% <= 9 milliseconds
99.97% <= 10 milliseconds
100.00% <= 10 milliseconds
81433.22 requests per second