--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
|
|
Test 1: 10 channels |
Test 2: 50 channels |
Test 3: 100 channels |
Test 4: 150 channels |
Test 5: 200 channels |
Test 6: 250 channels |
Test 7: 300 channels |
|
Total # of publishes |
6000 |
30000 |
60000 |
90000 |
120000 |
150000 |
180000 |
|
Latency average |
0.001182 |
0.001910 |
0.005344 |
0.002550 |
0.003421 |
0.003874 |
0.005913 |
|
Latency median average |
0.000747 |
0.001261 |
0.001433 |
0.001643 |
0.001936 |
0.002143 |
0.002377 |
|
Latency median median |
0.001641 |
0.001251 |
0.001374 |
0.001641 |
0.001951 |
0.0021479 |
0.002360 |
|
Max latency |
0.138365 |
0.144210 |
5.421915 |
0.138365 |
0.801732 |
0.454593 |
1.904010 |
|
Min latency |
0.000217 |
0.000258 |
0.000259 |
0.000217 |
0.000223 |
0.000214
|
0.0002192 |
|
category:count where # 0 : latency < .0001 sec # 1 : .0001 < latency < .0005 # 2 : .0005 < latency < .001 # 3 : .001 < latency < .005 # 4 : .005 < latency < .01 # 5 : .01 < latency < .05 # 6 : .05 < latency < .1 # 7 : .1 < latency < .5 # 8 : .5 < latency < 1 # 9 : 1 < latency < 5 # Z : latency > 5 sec |
0:0 1:2385 2:1542 3:1996 4:13 5:61 6:3 7:0 8:0 9:0 Z:0
|
0:0 1:6205 2:6237 3:16610 4:703 5:215 6:16 7:14 8:0 9:0 Z:0
|
0:0 1:10058 2:11205 3:35189 4:2682 5:574 6:154 7:64 8:21 9:40 Z:13
|
0:0 1:13014 2:15121 3:54806 4:5428 5:1361 6:233 7:37 8:0 9:0 Z:0
|
0:0 1:12588 2:17334 3:76344 4:10891 5:2257 6:268 7:282 8:36 9:0 Z:0
|
0:0 1:14189 2:19359 3:91665 4:18103 5:5882 6:330 7:472 8:0 9:0 Z:0
|
0:0 1:14305 2:21086 3:111403 4:24367 5:7813 6:366 7:400 8:39 9:221 Z:0
|
- - It looks like the majority of latency falls between 0.001 seconds to 0.005 seconds for any number of channels
- - Min latency is very consistent yet max latency is all over the place
-
>>>The only huge difference when going from 1 subscriber to 10000 subscribers is usually that that there are more messages being sent to Redis, which means that a command coming in may have a nonzero wait time before being executed in Redis' single-threaded architecture.I think you mean publishers? The more publishers the more message being sent to Redis.
The more message Redis have to process. This is what I want to measure; how the load affects latency.And for subscribers, I believe the author of Redis says its not the number of subscribers overall but number of subscribers to a channel that will affect latency.
My model for Redis pubsub is n publishers to 1 subscriber per channel. I wanted to know how many publishers I can have.
But i think its fair to say Redis pubsub is extremely low latency. I tested the same way but bumping Redis VM from 2 CPU to 4 CPU (i know cpu doesnt matter for redis), from 4GB RAM to 16GB RAM and it became lightening fast.
I wonder if i was memory bounded....
Thank you so much for your explanation. It makes sense to me :D