[CalendarServer-changes] [6668] CalendarServer/trunk/contrib/performance
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 2 14:16:26 PST 2010
Revision: 6668
http://trac.macosforge.org/projects/calendarserver/changeset/6668
Author: exarkun at twistedmatrix.com
Date: 2010-12-02 14:16:23 -0800 (Thu, 02 Dec 2010)
Log Message:
-----------
Use some environment variables to allow the concurrency features to be invoked.
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/ical.py
CalendarServer/trunk/contrib/performance/sample.sh
Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py 2010-12-02 22:05:49 UTC (rev 6667)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py 2010-12-02 22:16:23 UTC (rev 6668)
@@ -27,6 +27,21 @@
def loadRequestBody(label):
return FilePath(__file__).sibling(label + '.request').getContent()
+
+class Principal(object):
+ @classmethod
+ def fromPROPFINDResponse(cls, response):
+ """
+ Construct a principal from the body a response to a
+ I{PROPFIND} request for the principal URL.
+
+ @type response: C{str}
+ @rtype: C{cls}
+ """
+ return cls()
+
+
+
class SnowLeopard(object):
"""
Implementation of the SnowLeopard iCal network behavior.
Modified: CalendarServer/trunk/contrib/performance/sample.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/sample.sh 2010-12-02 22:05:49 UTC (rev 6667)
+++ CalendarServer/trunk/contrib/performance/sample.sh 2010-12-02 22:16:23 UTC (rev 6668)
@@ -1,4 +1,4 @@
-#!/bin/bash -x
+#!/bin/bash
##
# Copyright (c) 2010 Apple Inc. All rights reserved.
@@ -26,6 +26,12 @@
update_and_build $REV
+if [ "$HOSTS_COUNT" != "" ]; then
+ CONCURRENT="--hosts-count $HOSTS_COUNT --host-index $HOST_INDEX"
+else
+ CONCURRENT=""
+fi
+
DATE="`./svn-committime $SOURCE $REV`"
for backend in $BACKENDS; do
setbackend $backend
@@ -34,7 +40,7 @@
rm -rf data/
start 2
popd
- sudo ./run.sh ./benchmark --label r$REV-$backend --source-directory $SOURCE_DIR $BENCHMARKS
+ sudo ./run.sh ./benchmark $CONCURRENT --label r$REV-$backend --source-directory $SOURCE_DIR $BENCHMARKS
data=`echo -n r$REV-$backend*`
./run.sh ./massupload \
--url $ADDURL --revision $REV \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101202/1f80438f/attachment.html>
More information about the calendarserver-changes
mailing list