From 4ab3f4c5debd6b10c9a2edf85bb87421ee5289af Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 22 Feb 2022 13:16:23 -0800 Subject: [PATCH] adjust comma two model timing thresholds after bigmodel old-commit-hash: c98d9791f049c7cdc0c9154c963755b1239e451c --- selfdrive/test/test_onroad.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)}")