diff --git a/selfdrive/test/test_onroad.py b/selfdrive/test/test_onroad.py index 1f7ebccced..a49f93e37d 100755 --- a/selfdrive/test/test_onroad.py +++ b/selfdrive/test/test_onroad.py @@ -227,7 +227,12 @@ class TestOnroad(unittest.TestCase): result += "----------------- Model Timing -----------------\n" result += "------------------------------------------------\n" # TODO: this went up when plannerd cpu usage increased, why? - cfgs = [("modelV2", 0.038, 0.036), ("driverState", 0.028, 0.026)] + cfgs = [("driverState", 0.028, 0.026)] + if EON: + cfgs += [("modelV2", 0.045, 0.04)] + else: + cfgs += [("modelV2", 0.038, 0.036), ("driverState", 0.028, 0.026)] + for (s, instant_max, avg_max) in cfgs: ts = [getattr(getattr(m, s), "modelExecutionTime") for m in self.lr if m.which() == s] self.assertLess(min(ts), instant_max, f"high '{s}' execution time: {min(ts)}")