[CalendarServer-changes] [6924] CalendarServer/trunk/contrib/performance/benchlib.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 14 11:28:24 PST 2011
Revision: 6924
http://trac.macosforge.org/projects/calendarserver/changeset/6924
Author: exarkun at twistedmatrix.com
Date: 2011-02-14 11:28:24 -0800 (Mon, 14 Feb 2011)
Log Message:
-----------
Remove debug prints
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/benchlib.py
Modified: CalendarServer/trunk/contrib/performance/benchlib.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchlib.py 2011-02-14 19:27:15 UTC (rev 6923)
+++ CalendarServer/trunk/contrib/performance/benchlib.py 2011-02-14 19:28:24 UTC (rev 6924)
@@ -150,26 +150,19 @@
l = []
for i in range(concurrency):
l.append(once())
- print 'Start', concurrency
while True:
try:
- print 'Waiting...',
result, index = yield DeferredList(l, fireOnOneCallback=True, fireOnOneErrback=True)
- print 'Success result at index', index
except FirstError, e:
- print 'Failure result, re-raising'
e.subFailure.raiseException()
if time() > start + sampleTime:
- print 'Alloted time expired, waiting for remaining...',
# Wait for the rest of the outstanding requests to keep things tidy
yield DeferredList(l)
- print 'Complete.'
# And then move on
break
else:
- print 'Starting replacement operation'
# Get rid of the completed Deferred
del l[index]
# And start a new operation to replace it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110214/f5ddd386/attachment.html>
More information about the calendarserver-changes
mailing list