omerXfaruq commited on
Commit
b6fccf5
·
1 Parent(s): 3f65dc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ async def startup(client_count):
19
  return f"Total-duration: {round(end-begin,3)}, success: {len(duration_list)} out of {client_count}"
20
 
21
  async def client(rank):
22
- await asyncio.sleep(rank*0.001) # Server cannot handle a lot of instantanous conns
23
  async with websockets.connect(host, timeout=10000) as websocket:
24
  start = time.time()
25
  while True:
 
19
  return f"Total-duration: {round(end-begin,3)}, success: {len(duration_list)} out of {client_count}"
20
 
21
  async def client(rank):
22
+ await asyncio.sleep(rank*0.01) # Server cannot handle a lot of instantanous conns
23
  async with websockets.connect(host, timeout=10000) as websocket:
24
  start = time.time()
25
  while True: