[CalendarServer-changes] [6110] CalendarServer/trunk/contrib/performance/compare.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 18 11:09:28 PDT 2010


Revision: 6110
          http://trac.macosforge.org/projects/calendarserver/changeset/6110
Author:   exarkun at twistedmatrix.com
Date:     2010-08-18 11:09:25 -0700 (Wed, 18 Aug 2010)
Log Message:
-----------
emit the p value too

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/compare.py

Modified: CalendarServer/trunk/contrib/performance/compare.py
===================================================================
--- CalendarServer/trunk/contrib/performance/compare.py	2010-08-18 18:00:07 UTC (rev 6109)
+++ CalendarServer/trunk/contrib/performance/compare.py	2010-08-18 18:09:25 UTC (rev 6110)
@@ -34,8 +34,9 @@
     stat, first = select(first, *sys.argv[3:])
     stat, second = select(second, *sys.argv[3:])
 
-    if ttest_1samp(second, stats.mean(first))[1][0] < 0.05:
-        print 'same' # failed to reject the null hypothesis
+    p =ttest_1samp(second, stats.mean(first))[1][0]
+    if p < 0.05:
+        print 'different', p # rejected the null hypothesis
     else:
-        print 'different' # rejected the null hypothesis
+        print 'same', p # failed to reject the null hypothesis
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100818/3520e7f6/attachment.html>


More information about the calendarserver-changes mailing list