[CalendarServer-changes] [6583] CalendarServer/trunk/contrib/performance/benchlib.sh

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 9 16:24:19 PST 2010


Revision: 6583
          http://trac.macosforge.org/projects/calendarserver/changeset/6583
Author:   exarkun at twistedmatrix.com
Date:     2010-11-09 16:24:17 -0800 (Tue, 09 Nov 2010)
Log Message:
-----------
Some comments about what's in this file; also fix the upload hostname to refer to localhost again.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/benchlib.sh

Modified: CalendarServer/trunk/contrib/performance/benchlib.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/benchlib.sh	2010-11-10 00:18:07 UTC (rev 6582)
+++ CalendarServer/trunk/contrib/performance/benchlib.sh	2010-11-10 00:24:17 UTC (rev 6583)
@@ -2,17 +2,30 @@
 set -e # Break on error
 shopt -s nullglob # Expand foo* to nothing if nothing matches
 
+# Names of database backends that can be benchmarked.
 BACKENDS="filesystem postgresql"
 
+# Location of the CalendarServer source.  Will automatically be
+# updated to the appropriate version, config edited to use the right
+# backend, and PID files will be discovered beneath it.
 SOURCE=~/Projects/CalendarServer/trunk
+
+# Names of benchmarks we can run.
 BENCHMARKS="event_move event_delete_attendee event_add_attendee event_change_date event_change_summary event_delete vfreebusy event"
+
+# Names of metrics we can collect.
 STATISTICS=(HTTP SQL read write pagein pageout)
-ADDURL=http://boson.:8000/result/add/
 
+# Codespeed add-result location.
+ADDURL=http://localhost:8000/result/add/
+
+# Change the config beneath $SOURCE to use a particular database backend.
 function setbackend() {
   ./setbackend $SOURCE/conf/caldavd-test.plist $1 > $SOURCE/conf/caldavd-dev.plist
 }
 
+# Clean up $SOURCE, update to the specified revision, and build the
+# extensions (in-place).
 function update_and_build() {
   pushd $SOURCE
   stop
@@ -22,6 +35,9 @@
   popd
 }
 
+# Start a CalendarServer in the current directory.  Only return after
+# the specified number of slave processes have written their PID files
+# (which is only a weak metric for "the server is ready to use").
 function start() {
   NUM_INSTANCES=$1
   shift
@@ -36,6 +52,8 @@
   done
 }
 
+# Stop the CalendarServer in the current directory.  Only return after
+# it has exited.
 function stop() {
   ./run -k || true
   while [ -e ./data/Logs/caldavd.pid ]; do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101109/97054ab0/attachment-0001.html>


More information about the calendarserver-changes mailing list