[llvm-commits] [zorg] r130827 - /zorg/trunk/lnt/lnt/db/runinfo.py

Daniel Dunbar daniel at zuster.org
Tue May 3 18:48:42 PDT 2011


Author: ddunbar
Date: Tue May  3 20:48:41 2011
New Revision: 130827

URL: http://llvm.org/viewvc/llvm-project?rev=130827&view=rev
Log:
lnt.db.runinfo: Change default value_precision to match current output of LLVM
test suite, and add an argument to allow disabling the logic which ignores any
change under 1%.

Modified:
    zorg/trunk/lnt/lnt/db/runinfo.py

Modified: zorg/trunk/lnt/lnt/db/runinfo.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/db/runinfo.py?rev=130827&r1=130826&r2=130827&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/db/runinfo.py (original)
+++ zorg/trunk/lnt/lnt/db/runinfo.py Tue May  3 20:48:41 2011
@@ -37,7 +37,8 @@
             else:
                 return UNCHANGED_PASS
 
-    def get_value_status(self, confidence_interval=2.576, value_precision=0.01):
+    def get_value_status(self, confidence_interval=2.576,
+                         value_precision=0.0001, ignore_small=True):
         if self.current is None or self.previous is None:
             return None
 
@@ -61,7 +62,7 @@
 
         # Always ignore percentage changes below 1%, for now, we just don't have
         # enough time to investigate that level of stuff.
-        if abs(self.pct_delta) < .01:
+        if ignore_small and abs(self.pct_delta) < .01:
             return UNCHANGED_PASS
 
         # If we have a comparison window, then measure using a symmetic





More information about the llvm-commits mailing list