MCPcopy Index your code
hub / github.com/python-websockets/websockets / benchmark

Function benchmark

example/deployment/kubernetes/benchmark.py:19–23  ·  view source on GitHub ↗
(clients, messages)

Source from the content-addressed store, hash-verified

17
18
19async def benchmark(clients, messages):
20 await asyncio.wait([
21 asyncio.create_task(run(client_id, messages))
22 for client_id in range(clients)
23 ])
24
25
26if __name__ == "__main__":

Callers 1

benchmark.pyFile · 0.70

Calls 1

runFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…