MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / test

Function test

tests/performance/text_packet.py:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test():
6 p = packet.Packet(packet.EVENT, 'hello')
7 start = time.time()
8 count = 0
9 while True:
10 p = packet.Packet(encoded_packet=p.encode())
11 count += 1
12 if time.time() - start >= 5:
13 break
14 return count
15
16
17if __name__ == '__main__':

Callers 1

text_packet.pyFile · 0.70

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…