incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ak...@apache.org
Subject svn commit: r733986 - /incubator/olio/workload/php/trunk/src/com/sun/web20/driver/UIDriver.java
Date Tue, 13 Jan 2009 01:40:27 GMT
Author: akara
Date: Mon Jan 12 17:40:27 2009
New Revision: 733986

URL: http://svn.apache.org/viewvc?rev=733986&view=rev
Log:
Fix for issue OLIO-27 and OLIO-20: Changed tag search image treshold and added scale:metric
ratio in the misc stats.

Modified:
    incubator/olio/workload/php/trunk/src/com/sun/web20/driver/UIDriver.java

Modified: incubator/olio/workload/php/trunk/src/com/sun/web20/driver/UIDriver.java
URL: http://svn.apache.org/viewvc/incubator/olio/workload/php/trunk/src/com/sun/web20/driver/UIDriver.java?rev=733986&r1=733985&r2=733986&view=diff
==============================================================================
--- incubator/olio/workload/php/trunk/src/com/sun/web20/driver/UIDriver.java (original)
+++ incubator/olio/workload/php/trunk/src/com/sun/web20/driver/UIDriver.java Mon Jan 12 17:40:27
2009
@@ -864,7 +864,7 @@
         public Element[] getResults() {
             Result r = Result.getInstance();
             int total = r.getOpsCountSteady("EventDetail");
-            Element[] el = new Element[9];
+            Element[] el = new Element[10];
             el[0] = new Element();
             el[0].description = "% EventDetail views where attendee added";
             el[0].target = ">= 6";
@@ -933,11 +933,11 @@
             cnt = r.getOpsCountSteady("TagSearch");
             el[5] = new Element();
             el[5].description = "Average images on Tag Search Results";
-            el[5].target = ">= 7";
+            el[5].target = ">= 3.6";
             if (cnt > 0) {
                 double avgImgs = tagSearchImages / (double) cnt;
                 el[5].result = String.format("%.2f", avgImgs);
-                if (avgImgs >= 7d)
+                if (avgImgs >= 3.6d)
                     el[5].passed = Boolean.TRUE;
                 else
                     el[5].passed = Boolean.FALSE;
@@ -965,6 +965,15 @@
             el[8] = new Element();
             el[8].description = "Total successful AddPerson calls";
             el[8].result = String.valueOf(addPersonTotal);
+            el[9] = new Element();
+            el[9].description = "Concurrent user to ops/sec ratio";
+            el[9].target = "<= 5.25";
+            double ratio = r.getScale() / r.getMetric();
+            el[9].result = String.format("%.2f", ratio);
+            if (ratio <= 5.25d)
+                el[9].passed = true;
+            else
+                el[9].passed = false;
             return el;
         }
 



Mime
View raw message