Skip to content

Commit 177ebaa

Browse files
committed
goes from ~210 to ~240 mean ms real time
1 parent b494b14 commit 177ebaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

selfdrive/debug/check_can_parser_performance.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ class CarModelTestCase(TestCarModelBase):
2929
msgs = [m.as_builder().to_bytes() for m in tm.can_msgs]
3030
start_t = time.process_time_ns()
3131
for msg in msgs:
32+
can_list = can_capnp_to_list([msg])
3233
for cp in tm.CI.can_parsers:
3334
if cp is not None:
34-
cp.update_strings(can_capnp_to_list([msg]))
35+
cp.update_strings(can_list)
3536
ets.append((time.process_time_ns() - start_t) * 1e-6)
3637

3738
print(f'{len(tm.can_msgs)} CAN packets, {N_RUNS} runs')

0 commit comments

Comments
 (0)