adjust comma two model timing thresholds after bigmodel

old-commit-hash: c98d9791f049c7cdc0c9154c963755b1239e451c
This commit is contained in:
Adeeb Shihadeh
2022-02-22 13:16:23 -08:00
parent 5517800a59
commit 4ab3f4c5de
+6 -1
View File
@@ -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)}")