mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 05:22:07 +08:00
adjust comma two model timing thresholds after bigmodel
old-commit-hash: c98d9791f049c7cdc0c9154c963755b1239e451c
This commit is contained in:
@@ -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)}")
|
||||
|
||||
Reference in New Issue
Block a user