[CalendarServer-changes] [6822] CalendarServer/trunk/contrib/performance/loadtest/population.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jan 28 14:28:21 PST 2011
Revision: 6822
http://trac.macosforge.org/projects/calendarserver/changeset/6822
Author: exarkun at twistedmatrix.com
Date: 2011-01-28 14:28:21 -0800 (Fri, 28 Jan 2011)
Log Message:
-----------
Add the accepter profile to this population.
If there is an event on a calendar, this will now generate invitations to other users for that event, and those users will eventually accept the invitation.
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/loadtest/population.py
Modified: CalendarServer/trunk/contrib/performance/loadtest/population.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/population.py 2011-01-28 22:27:21 UTC (rev 6821)
+++ CalendarServer/trunk/contrib/performance/loadtest/population.py 2011-01-28 22:28:21 UTC (rev 6822)
@@ -24,7 +24,7 @@
from stats import mean, median, stddev, mad
from loadtest.ical import SnowLeopard, RequestLogger
-from loadtest.profiles import Inviter
+from loadtest.profiles import Inviter, Accepter
class PopulationParameters(object):
@@ -87,7 +87,7 @@
def _nextUserNumber(self):
result = self._user
self._user += 1
- return self._user
+ return result
def _createUser(self, number):
@@ -109,7 +109,8 @@
client = self._pop.next()(self.reactor, self.host, self.port, user, auth)
client.run()
Inviter(self.reactor, client, number).run()
- print 'Now running', self._user, 'clients.'
+ Accepter(self.reactor, client, number).run()
+ print 'Now running', self._user - 1, 'clients.'
@@ -213,10 +214,8 @@
populator, parameters, reactor, '127.0.0.1', 8008)
# Add some clients.
- call = LoopingCall(simulator.add, 1)
- call.start(3)
- reactor.callLater(3 * 90, call.stop)
-
+ for i in range(50):
+ reactor.callLater(i, simulator.add, 1)
reactor.run()
report.summarize()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110128/d28a8898/attachment.html>
More information about the calendarserver-changes
mailing list