Files
clearpilot/cereal/messaging/stress.py
Comma Device 1ff14d346f wip
2024-05-14 08:21:27 +00:00

15 lines
330 B
Python
Executable File

from messaging_pyx import Context, SubSocket, PubSocket
if __name__ == "__main__":
c = Context()
pub_sock = PubSocket()
pub_sock.connect(c, "controlsState")
for i in range(int(1e10)):
print(i)
sub_sock = SubSocket()
sub_sock.connect(c, "controlsState")
pub_sock.send(b'a')
print(sub_sock.receive())