[llvm-commits] [zorg] r132158 - /zorg/trunk/lnt/lnt/server/ui/static/order_aggregate_ui.js

Daniel Dunbar daniel at zuster.org
Thu May 26 15:01:00 PDT 2011


Author: ddunbar
Date: Thu May 26 17:00:59 2011
New Revision: 132158

URL: http://llvm.org/viewvc/llvm-project?rev=132158&view=rev
Log:
LNT/Order UI: Tweak aggregation to ignore small values and to compute pct change, which "works around" the problem of missing values for the time being.

Modified:
    zorg/trunk/lnt/lnt/server/ui/static/order_aggregate_ui.js

Modified: zorg/trunk/lnt/lnt/server/ui/static/order_aggregate_ui.js
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/server/ui/static/order_aggregate_ui.js?rev=132158&r1=132157&r2=132158&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/server/ui/static/order_aggregate_ui.js (original)
+++ zorg/trunk/lnt/lnt/server/ui/static/order_aggregate_ui.js Thu May 26 17:00:59 2011
@@ -113,15 +113,19 @@
     var pts = []
 
     for (var i = 0; i != test_names.length; ++i) {
+        // Currently we just assume the first machine is the baseline. This
+        // needs to get more complicated, eventually.
         var baseline = test_data[test_names[i]][0][machine_idx];
         var value = test_data[test_names[i]][order_idx][machine_idx];
         if (baseline === null || value === null)
             continue;
 
-        pts.push(value / baseline);
-    }
+        // Ignore tests with unreasonable baselines.
+        if (baseline < 0.0001)
+            continue;
 
-    console.log([subset_name, order_idx, machine_idx, pts]);
+        pts.push((value / baseline - 1.) * 100.);
+    }
 
     return mean(pts);
 }





More information about the llvm-commits mailing list