Changeset 97279 in vbox for trunk/src/VBox/ValidationKit/analysis/reader.py
- Timestamp:
- Oct 24, 2022 2:36:36 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/analysis/reader.py
r97267 r97279 97 97 "ns/roundtrip": -2, 98 98 "ins": +2, 99 "ins/sec": -1,99 "ins/sec": +2, 100 100 "": +1, # Difficult to say what's best really. 101 101 "pp1k": -2, … … 127 127 assert self.lValue is None or isinstance(self.lValue, (int, long)), "lValue=%s %s" % (self.lValue, type(self.lValue),); 128 128 129 # Members set by processing.130 self.sDiff = None;131 132 129 def clone(self, oParentTest): 133 130 """ … … 150 147 return False; 151 148 149 def canDoBetterCompare(self): 150 """ 151 Checks whether we can do a confident better-than comparsion of the value. 152 """ 153 return self.sUnit is not None and self.kdBestByUnit[self.sUnit] not in (-1, 0, 1); 154 155 def getBetterRelation(self): 156 """ 157 Returns +2 if larger values are definintely better. 158 Returns +1 if larger values are likely to be better. 159 Returns 0 if we have no clue. 160 Returns -1 if smaller values are likey to better. 161 Returns -2 if smaller values are definitely better. 162 """ 163 if self.sUnit is None: 164 return 0; 165 return self.kdBestByUnit[self.sUnit]; 152 166 153 167 @staticmethod … … 227 241 self.sStatus = None; 228 242 self.cErrors = -1; 229 230 # Members set by processing.231 self.sStatusDiff = None;232 self.cErrorsDiff = None;233 243 234 244 def clone(self, oParent = None):
Note:
See TracChangeset
for help on using the changeset viewer.