You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
333 B
16 lines
333 B
#!/usr/bin/env python3
|
|
import time
|
|
import cereal.messaging as messaging
|
|
|
|
|
|
def init_message_bench(N=100000):
|
|
t = time.time()
|
|
for _ in range(N):
|
|
dat = messaging.new_message('controlsState')
|
|
|
|
dt = time.time() - t
|
|
print("Init message %d its, %f s" % (N, dt))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
init_message_bench()
|
|
|