测试命令:
.\redis-benchmark.exe -n 100
测试结果:
====== PING_INLINE ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
64.00% <= 1 milliseconds
100.00% <= 1 milliseconds
50000.00 requests per second
====== PING_BULK ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
54.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== SET ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
51.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== GET ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
79.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== INCR ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
53.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== LPUSH ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
84.00% <= 1 milliseconds
100.00% <= 1 milliseconds
50000.00 requests per second
====== LPOP ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
58.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== SADD ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
51.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== SPOP ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
82.00% <= 1 milliseconds
100.00% <= 1 milliseconds
99999.99 requests per second
====== LPUSH (needed to benchmark LRANGE) ====
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
59.00% <= 1 milliseconds
100.00% <= 1 milliseconds
50000.00 requests per second
====== LRANGE_100 (first 100 elements) ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
31.00% <= 1 milliseconds
100.00% <= 2 milliseconds
50000.00 requests per second
====== LRANGE_300 (first 300 elements) ======
100 requests completed in 0.01 seconds
50 parallel clients
3 bytes payload
keep alive: 1
8.00% <= 1 milliseconds
55.00% <= 2 milliseconds
89.00% <= 3 milliseconds
100.00% <= 3 milliseconds
16666.67 requests per second
====== LRANGE_500 (first 450 elements) ======
100 requests completed in 0.01 seconds
50 parallel clients
3 bytes payload
keep alive: 1
1.00% <= 1 milliseconds
28.00% <= 2 milliseconds
66.00% <= 3 milliseconds
86.00% <= 4 milliseconds
100.00% <= 5 milliseconds
11111.11 requests per second
====== LRANGE_600 (first 600 elements) ======
100 requests completed in 0.01 seconds
50 parallel clients
3 bytes payload
keep alive: 1
1.00% <= 1 milliseconds
12.00% <= 2 milliseconds
43.00% <= 3 milliseconds
67.00% <= 4 milliseconds
80.00% <= 5 milliseconds
96.00% <= 6 milliseconds
100.00% <= 6 milliseconds
9090.91 requests per second
====== MSET (10 keys) ======
100 requests completed in 0.00 seconds
50 parallel clients
3 bytes payload
keep alive: 1
14.00% <= 1 milliseconds
100.00% <= 1 milliseconds
50000.00 requests per second