mirror of
https://github.com/storytold/EventCenterPlugin.git
synced 2026-11-20 17:10:42 +01:00
load test (works!!)
This commit is contained in:
1 parent
4f4f218222
commit
be30aabffb
1 file changed
+8
@@ -1 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import redis
|
||||
redis_client = redis.Redis(host='localhost', port=6379, db=0)
|
||||
|
||||
for i in range(1000):
|
||||
message = 'message: {}'.format(i)
|
||||
redis_client.publish('testing', message)
|
||||
|
||||
Reference in new issue
Block a user