Skip to content

Commit c98d979

Browse files
committed
adjust comma two model timing thresholds after bigmodel
1 parent 2f00271 commit c98d979

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

selfdrive/test/test_onroad.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,12 @@ def test_model_execution_timings(self):
227227
result += "----------------- Model Timing -----------------\n"
228228
result += "------------------------------------------------\n"
229229
# TODO: this went up when plannerd cpu usage increased, why?
230-
cfgs = [("modelV2", 0.038, 0.036), ("driverState", 0.028, 0.026)]
230+
cfgs = [("driverState", 0.028, 0.026)]
231+
if EON:
232+
cfgs += [("modelV2", 0.045, 0.04)]
233+
else:
234+
cfgs += [("modelV2", 0.038, 0.036), ("driverState", 0.028, 0.026)]
235+
231236
for (s, instant_max, avg_max) in cfgs:
232237
ts = [getattr(getattr(m, s), "modelExecutionTime") for m in self.lr if m.which() == s]
233238
self.assertLess(min(ts), instant_max, f"high '{s}' execution time: {min(ts)}")

0 commit comments

Comments
 (0)