Create a gist now

Instantly share code, notes, and snippets.

@yteraoka /direct.txt
Last active Jan 24, 2017

Embed
What would you like to do?
redis 直接と haproxy 経由での redis-benchmark 比較
$ redis-benchmark -a gDDTEGhRnReCKQEn -p 6479 -h 192.168.140.74
====== PING_INLINE ======
100000 requests completed in 2.48 seconds
50 parallel clients
3 bytes payload
keep alive: 1
41.71% <= 1 milliseconds
93.96% <= 2 milliseconds
99.36% <= 3 milliseconds
99.88% <= 4 milliseconds
99.94% <= 5 milliseconds
99.95% <= 8 milliseconds
99.97% <= 9 milliseconds
100.00% <= 11 milliseconds
100.00% <= 11 milliseconds
40306.33 requests per second
====== PING_BULK ======
100000 requests completed in 2.31 seconds
50 parallel clients
3 bytes payload
keep alive: 1
49.76% <= 1 milliseconds
98.87% <= 2 milliseconds
99.99% <= 3 milliseconds
100.00% <= 3 milliseconds
43252.59 requests per second
====== SET ======
100000 requests completed in 2.76 seconds
50 parallel clients
3 bytes payload
keep alive: 1
18.36% <= 1 milliseconds
94.20% <= 2 milliseconds
99.91% <= 3 milliseconds
100.00% <= 3 milliseconds
36297.64 requests per second
====== GET ======
100000 requests completed in 1.89 seconds
50 parallel clients
3 bytes payload
keep alive: 1
72.03% <= 1 milliseconds
99.80% <= 2 milliseconds
100.00% <= 2 milliseconds
52994.17 requests per second
====== INCR ======
100000 requests completed in 1.53 seconds
50 parallel clients
3 bytes payload
keep alive: 1
94.42% <= 1 milliseconds
99.99% <= 2 milliseconds
100.00% <= 2 milliseconds
65359.48 requests per second
====== LPUSH ======
100000 requests completed in 1.47 seconds
50 parallel clients
3 bytes payload
keep alive: 1
97.31% <= 1 milliseconds
100.00% <= 2 milliseconds
68166.33 requests per second
====== LPOP ======
100000 requests completed in 1.53 seconds
50 parallel clients
3 bytes payload
keep alive: 1
93.82% <= 1 milliseconds
99.97% <= 2 milliseconds
100.00% <= 2 milliseconds
65402.22 requests per second
====== SADD ======
100000 requests completed in 1.40 seconds
50 parallel clients
3 bytes payload
keep alive: 1
97.99% <= 1 milliseconds
100.00% <= 1 milliseconds
71633.23 requests per second
====== SPOP ======
100000 requests completed in 1.38 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.75% <= 1 milliseconds
100.00% <= 1 milliseconds
72463.77 requests per second
====== LPUSH (needed to benchmark LRANGE) ======
100000 requests completed in 1.33 seconds
50 parallel clients
3 bytes payload
keep alive: 1
99.35% <= 1 milliseconds
99.86% <= 2 milliseconds
99.92% <= 3 milliseconds
100.00% <= 3 milliseconds
75075.07 requests per second
====== LRANGE_100 (first 100 elements) ======
100000 requests completed in 3.45 seconds
50 parallel clients
3 bytes payload
keep alive: 1
62.13% <= 1 milliseconds
81.53% <= 2 milliseconds
97.47% <= 3 milliseconds
99.60% <= 4 milliseconds
99.90% <= 10 milliseconds
99.93% <= 11 milliseconds
99.95% <= 12 milliseconds
100.00% <= 12 milliseconds
28951.94 requests per second
====== LRANGE_300 (first 300 elements) ======
100000 requests completed in 8.66 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.01% <= 1 milliseconds
3.03% <= 2 milliseconds
50.29% <= 3 milliseconds
77.04% <= 4 milliseconds
89.26% <= 5 milliseconds
96.81% <= 6 milliseconds
99.23% <= 7 milliseconds
99.68% <= 8 milliseconds
99.95% <= 9 milliseconds
99.99% <= 10 milliseconds
100.00% <= 10 milliseconds
11542.01 requests per second
====== LRANGE_500 (first 450 elements) ======
100000 requests completed in 11.26 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
1.23% <= 2 milliseconds
11.73% <= 3 milliseconds
51.02% <= 4 milliseconds
76.39% <= 5 milliseconds
87.88% <= 6 milliseconds
94.78% <= 7 milliseconds
98.92% <= 8 milliseconds
99.93% <= 9 milliseconds
100.00% <= 9 milliseconds
8878.63 requests per second
====== LRANGE_600 (first 600 elements) ======
100000 requests completed in 13.62 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.01% <= 1 milliseconds
0.74% <= 2 milliseconds
6.05% <= 3 milliseconds
35.92% <= 4 milliseconds
64.68% <= 5 milliseconds
77.81% <= 6 milliseconds
85.19% <= 7 milliseconds
90.85% <= 8 milliseconds
95.77% <= 9 milliseconds
98.66% <= 10 milliseconds
99.28% <= 11 milliseconds
99.59% <= 12 milliseconds
99.89% <= 13 milliseconds
99.99% <= 14 milliseconds
100.00% <= 14 milliseconds
7343.22 requests per second
====== MSET (10 keys) ======
100000 requests completed in 3.07 seconds
50 parallel clients
3 bytes payload
keep alive: 1
43.26% <= 1 milliseconds
69.92% <= 2 milliseconds
96.01% <= 3 milliseconds
99.82% <= 4 milliseconds
100.00% <= 4 milliseconds
32530.91 requests per second
$ redis-benchmark -a gDDTEGhRnReCKQEn -p 6479 -h 192.168.140.70
====== PING_INLINE ======
100000 requests completed in 3.62 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.84% <= 1 milliseconds
72.91% <= 2 milliseconds
99.87% <= 3 milliseconds
99.95% <= 9 milliseconds
99.96% <= 10 milliseconds
99.97% <= 11 milliseconds
100.00% <= 11 milliseconds
27654.87 requests per second
====== PING_BULK ======
100000 requests completed in 3.46 seconds
50 parallel clients
3 bytes payload
keep alive: 1
10.78% <= 1 milliseconds
82.71% <= 2 milliseconds
95.80% <= 3 milliseconds
98.48% <= 4 milliseconds
99.22% <= 5 milliseconds
100.00% <= 6 milliseconds
100.00% <= 6 milliseconds
28935.18 requests per second
====== SET ======
100000 requests completed in 4.08 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.94% <= 1 milliseconds
51.39% <= 2 milliseconds
95.83% <= 3 milliseconds
97.81% <= 4 milliseconds
99.71% <= 5 milliseconds
99.95% <= 9 milliseconds
99.99% <= 10 milliseconds
100.00% <= 10 milliseconds
24515.81 requests per second
====== GET ======
100000 requests completed in 3.12 seconds
50 parallel clients
3 bytes payload
keep alive: 1
27.00% <= 1 milliseconds
67.18% <= 2 milliseconds
99.65% <= 3 milliseconds
99.96% <= 4 milliseconds
99.99% <= 5 milliseconds
100.00% <= 6 milliseconds
100.00% <= 6 milliseconds
32092.43 requests per second
====== INCR ======
100000 requests completed in 3.98 seconds
50 parallel clients
3 bytes payload
keep alive: 1
7.35% <= 1 milliseconds
44.15% <= 2 milliseconds
98.45% <= 3 milliseconds
99.86% <= 4 milliseconds
99.95% <= 5 milliseconds
99.95% <= 9 milliseconds
99.99% <= 10 milliseconds
100.00% <= 10 milliseconds
25131.94 requests per second
====== LPUSH ======
100000 requests completed in 4.03 seconds
50 parallel clients
3 bytes payload
keep alive: 1
2.34% <= 1 milliseconds
44.31% <= 2 milliseconds
99.97% <= 3 milliseconds
100.00% <= 3 milliseconds
24832.38 requests per second
====== LPOP ======
100000 requests completed in 3.34 seconds
50 parallel clients
3 bytes payload
keep alive: 1
11.68% <= 1 milliseconds
71.39% <= 2 milliseconds
99.15% <= 3 milliseconds
99.91% <= 4 milliseconds
99.97% <= 5 milliseconds
100.00% <= 6 milliseconds
29949.09 requests per second
====== SADD ======
100000 requests completed in 2.47 seconds
50 parallel clients
3 bytes payload
keep alive: 1
37.68% <= 1 milliseconds
97.66% <= 2 milliseconds
99.97% <= 3 milliseconds
100.00% <= 3 milliseconds
40535.06 requests per second
====== SPOP ======
100000 requests completed in 4.05 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.60% <= 1 milliseconds
60.30% <= 2 milliseconds
96.15% <= 3 milliseconds
99.76% <= 4 milliseconds
99.97% <= 5 milliseconds
100.00% <= 5 milliseconds
24667.00 requests per second
====== LPUSH (needed to benchmark LRANGE) ======
100000 requests completed in 4.09 seconds
50 parallel clients
3 bytes payload
keep alive: 1
10.26% <= 1 milliseconds
50.99% <= 2 milliseconds
94.20% <= 3 milliseconds
95.41% <= 4 milliseconds
97.31% <= 5 milliseconds
97.81% <= 6 milliseconds
99.53% <= 7 milliseconds
100.00% <= 7 milliseconds
24479.80 requests per second
====== LRANGE_100 (first 100 elements) ======
100000 requests completed in 4.42 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
23.48% <= 2 milliseconds
99.39% <= 3 milliseconds
99.93% <= 4 milliseconds
100.00% <= 4 milliseconds
22619.32 requests per second
====== LRANGE_300 (first 300 elements) ======
100000 requests completed in 8.44 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
0.61% <= 2 milliseconds
41.43% <= 3 milliseconds
73.06% <= 4 milliseconds
89.76% <= 5 milliseconds
96.68% <= 6 milliseconds
99.43% <= 7 milliseconds
99.94% <= 8 milliseconds
100.00% <= 9 milliseconds
11846.94 requests per second
====== LRANGE_500 (first 450 elements) ======
100000 requests completed in 9.94 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
0.01% <= 2 milliseconds
12.32% <= 3 milliseconds
49.62% <= 4 milliseconds
78.92% <= 5 milliseconds
94.55% <= 6 milliseconds
98.66% <= 7 milliseconds
99.76% <= 8 milliseconds
99.95% <= 9 milliseconds
99.98% <= 10 milliseconds
99.99% <= 11 milliseconds
100.00% <= 12 milliseconds
10058.34 requests per second
====== LRANGE_600 (first 600 elements) ======
100000 requests completed in 12.60 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
0.00% <= 2 milliseconds
4.94% <= 3 milliseconds
30.11% <= 4 milliseconds
56.54% <= 5 milliseconds
76.56% <= 6 milliseconds
87.90% <= 7 milliseconds
93.01% <= 8 milliseconds
96.43% <= 9 milliseconds
98.30% <= 10 milliseconds
99.45% <= 11 milliseconds
99.94% <= 12 milliseconds
99.97% <= 13 milliseconds
99.98% <= 14 milliseconds
100.00% <= 15 milliseconds
100.00% <= 15 milliseconds
7937.77 requests per second
====== MSET (10 keys) ======
100000 requests completed in 5.85 seconds
50 parallel clients
3 bytes payload
keep alive: 1
0.00% <= 1 milliseconds
15.51% <= 2 milliseconds
70.08% <= 3 milliseconds
82.09% <= 4 milliseconds
92.85% <= 5 milliseconds
96.64% <= 6 milliseconds
99.75% <= 7 milliseconds
99.90% <= 9 milliseconds
99.95% <= 10 milliseconds
99.95% <= 16 milliseconds
99.97% <= 17 milliseconds
100.00% <= 17 milliseconds
17105.71 requests per second

redis-benchmark requet/s

$ redis-benchmark -a gDDTEGhRnReCKQEn -p 6479 -h 192.168.140.70
$ redis-benchmark -a gDDTEGhRnReCKQEn -p 6479 -h 192.168.140.74
Type direct HAProxy proxy/direct
PING_INLINE 40306.33 27654.87 68.61%
PING_BULK 43252.59 28935.18 66.89%
SET 36297.64 24515.81 67.54%
GET 52994.17 32092.43 60.55%
INCR 65359.48 25131.94 38.45%
LPUSH 68166.33 24832.38 36.42%
LPOP 65402.22 29949.09 45.79%
SADD 71633.23 40535.06 56.58%
SPOP 72463.77 24667.00 34.04%
LPUSH (needed to benchmark LRANGE) 75075.07 24479.80 32.60%
LRANGE_100 (first 100 elements) 28951.94 22619.32 78.12%
LRANGE_300 (first 300 elements) 11542.01 11846.94 102.64%
LRANGE_500 (first 450 elements) 8878.63 10058.34 113.28%
LRANGE_600 (first 600 elements) 7343.22 7937.77 108.09%
MSET (10 keys) 32530.91 17105.71 52.58%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment