[CalendarServer-changes] [6651] CalendarServer/trunk/contrib/performance
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 18 11:29:59 PST 2010
Revision: 6651
http://trac.macosforge.org/projects/calendarserver/changeset/6651
Author: exarkun at twistedmatrix.com
Date: 2010-11-18 11:29:53 -0800 (Thu, 18 Nov 2010)
Log Message:
-----------
Add copyright boilerplate
Modified Paths:
--------------
CalendarServer/trunk/contrib/performance/_event_change.py
CalendarServer/trunk/contrib/performance/benchlib.py
CalendarServer/trunk/contrib/performance/benchlib.sh
CalendarServer/trunk/contrib/performance/benchmark
CalendarServer/trunk/contrib/performance/benchmark.py
CalendarServer/trunk/contrib/performance/compare
CalendarServer/trunk/contrib/performance/compare.py
CalendarServer/trunk/contrib/performance/display-calendar-events.py
CalendarServer/trunk/contrib/performance/event.py
CalendarServer/trunk/contrib/performance/event_add_attendee.py
CalendarServer/trunk/contrib/performance/event_change_date.py
CalendarServer/trunk/contrib/performance/event_change_summary.py
CalendarServer/trunk/contrib/performance/event_delete.py
CalendarServer/trunk/contrib/performance/event_delete_attendee.py
CalendarServer/trunk/contrib/performance/event_move.py
CalendarServer/trunk/contrib/performance/extractconf
CalendarServer/trunk/contrib/performance/find_calendars.py
CalendarServer/trunk/contrib/performance/find_events.py
CalendarServer/trunk/contrib/performance/fix-units.sql
CalendarServer/trunk/contrib/performance/graph
CalendarServer/trunk/contrib/performance/graph.py
CalendarServer/trunk/contrib/performance/httpauth.py
CalendarServer/trunk/contrib/performance/httpclient.py
CalendarServer/trunk/contrib/performance/io_measure.d
CalendarServer/trunk/contrib/performance/massupload
CalendarServer/trunk/contrib/performance/massupload.py
CalendarServer/trunk/contrib/performance/pgsql.d
CalendarServer/trunk/contrib/performance/profile.sh
CalendarServer/trunk/contrib/performance/report
CalendarServer/trunk/contrib/performance/report.py
CalendarServer/trunk/contrib/performance/report_principals.py
CalendarServer/trunk/contrib/performance/reupload.sh
CalendarServer/trunk/contrib/performance/run.sh
CalendarServer/trunk/contrib/performance/sample-many.sh
CalendarServer/trunk/contrib/performance/sample.sh
CalendarServer/trunk/contrib/performance/setbackend
CalendarServer/trunk/contrib/performance/setbackend.py
CalendarServer/trunk/contrib/performance/speedcenter.tac
CalendarServer/trunk/contrib/performance/sql_measure.d
CalendarServer/trunk/contrib/performance/sqlwatch
CalendarServer/trunk/contrib/performance/sqlwatch.py
CalendarServer/trunk/contrib/performance/stackedbar.py
CalendarServer/trunk/contrib/performance/stats.py
CalendarServer/trunk/contrib/performance/sudo-run.sh
CalendarServer/trunk/contrib/performance/svn-committime
CalendarServer/trunk/contrib/performance/svn-revno
CalendarServer/trunk/contrib/performance/test_event_change_date.py
CalendarServer/trunk/contrib/performance/test_stats.py
CalendarServer/trunk/contrib/performance/upload
CalendarServer/trunk/contrib/performance/upload.py
CalendarServer/trunk/contrib/performance/vfreebusy.py
Modified: CalendarServer/trunk/contrib/performance/_event_change.py
===================================================================
--- CalendarServer/trunk/contrib/performance/_event_change.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/_event_change.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
"""
Benchmark a server's handling of event summary changes.
Modified: CalendarServer/trunk/contrib/performance/benchlib.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchlib.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/benchlib.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import pickle
from time import time
Modified: CalendarServer/trunk/contrib/performance/benchlib.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/benchlib.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/benchlib.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
set -e # Break on error
shopt -s nullglob # Expand foo* to nothing if nothing matches
Modified: CalendarServer/trunk/contrib/performance/benchmark
===================================================================
--- CalendarServer/trunk/contrib/performance/benchmark 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/benchmark 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,4 +1,20 @@
#!/usr/bin/python
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from benchmark import main
raise SystemExit(main())
Modified: CalendarServer/trunk/contrib/performance/benchmark.py
===================================================================
--- CalendarServer/trunk/contrib/performance/benchmark.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/benchmark.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys, os, plistlib
from os.path import dirname
Modified: CalendarServer/trunk/contrib/performance/compare
===================================================================
--- CalendarServer/trunk/contrib/performance/compare 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/compare 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,20 @@
#!/usr/bin/python
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from compare import main
main()
Modified: CalendarServer/trunk/contrib/performance/compare.py
===================================================================
--- CalendarServer/trunk/contrib/performance/compare.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/compare.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys
import stats
Modified: CalendarServer/trunk/contrib/performance/display-calendar-events.py
===================================================================
--- CalendarServer/trunk/contrib/performance/display-calendar-events.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/display-calendar-events.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from Cocoa import NSDate
from CalendarStore import CalCalendarStore
Modified: CalendarServer/trunk/contrib/performance/event.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
"""
Benchmark a server's handling of event creation.
Modified: CalendarServer/trunk/contrib/performance/event_add_attendee.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event_add_attendee.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event_add_attendee.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
import _event_change
Modified: CalendarServer/trunk/contrib/performance/event_change_date.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event_change_date.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event_change_date.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
"""
Benchmark a change in the date boundaries of an event.
Modified: CalendarServer/trunk/contrib/performance/event_change_summary.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event_change_summary.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event_change_summary.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
from event import SUMMARY
Modified: CalendarServer/trunk/contrib/performance/event_delete.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event_delete.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event_delete.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
"""
Benchmark a server's handling of event deletion.
Modified: CalendarServer/trunk/contrib/performance/event_delete_attendee.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event_delete_attendee.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event_delete_attendee.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
import _event_change
Modified: CalendarServer/trunk/contrib/performance/event_move.py
===================================================================
--- CalendarServer/trunk/contrib/performance/event_move.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/event_move.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
from itertools import count, cycle
from urllib2 import HTTPDigestAuthHandler
Modified: CalendarServer/trunk/contrib/performance/extractconf
===================================================================
--- CalendarServer/trunk/contrib/performance/extractconf 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/extractconf 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/usr/bin/python
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys, plistlib
print plistlib.PlistParser().parse(file(sys.argv[1]))[sys.argv[2]]
Modified: CalendarServer/trunk/contrib/performance/find_calendars.py
===================================================================
--- CalendarServer/trunk/contrib/performance/find_calendars.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/find_calendars.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
from itertools import count
from urllib2 import HTTPDigestAuthHandler
Modified: CalendarServer/trunk/contrib/performance/find_events.py
===================================================================
--- CalendarServer/trunk/contrib/performance/find_events.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/find_events.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from itertools import count
from urllib2 import HTTPDigestAuthHandler
Modified: CalendarServer/trunk/contrib/performance/fix-units.sql
===================================================================
--- CalendarServer/trunk/contrib/performance/fix-units.sql 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/fix-units.sql 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+--
+-- Copyright (c) 2010 Apple Inc. All rights reserved.
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+
-- Set the units of all of the benchmarks to what they really are.
update codespeed_benchmark set units_title = 'Statements' where name like '%-SQLcount';
Modified: CalendarServer/trunk/contrib/performance/graph
===================================================================
--- CalendarServer/trunk/contrib/performance/graph 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/graph 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,20 @@
#!/usr/bin/python
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from graph import main
main()
Modified: CalendarServer/trunk/contrib/performance/graph.py
===================================================================
--- CalendarServer/trunk/contrib/performance/graph.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/graph.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
import sys
Modified: CalendarServer/trunk/contrib/performance/httpauth.py
===================================================================
--- CalendarServer/trunk/contrib/performance/httpauth.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/httpauth.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import shlex, urlparse
from twisted.web.http_headers import Headers
Modified: CalendarServer/trunk/contrib/performance/httpclient.py
===================================================================
--- CalendarServer/trunk/contrib/performance/httpclient.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/httpclient.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
from zope.interface import implements
Modified: CalendarServer/trunk/contrib/performance/io_measure.d
===================================================================
--- CalendarServer/trunk/contrib/performance/io_measure.d 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/io_measure.d 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
/*
* Trace information about I/O and SQL events.
Modified: CalendarServer/trunk/contrib/performance/massupload
===================================================================
--- CalendarServer/trunk/contrib/performance/massupload 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/massupload 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,20 @@
#!/usr/bin/python
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from massupload import main
main()
Modified: CalendarServer/trunk/contrib/performance/massupload.py
===================================================================
--- CalendarServer/trunk/contrib/performance/massupload.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/massupload.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys, pickle
from twisted.internet import reactor
Modified: CalendarServer/trunk/contrib/performance/pgsql.d
===================================================================
--- CalendarServer/trunk/contrib/performance/pgsql.d 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/pgsql.d 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
#define READ(fname) \
syscall::fname:return, syscall::fname ## _nocancel:return \
/execname == "postgres"/ \
Modified: CalendarServer/trunk/contrib/performance/profile.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/profile.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/profile.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/bin/bash -x
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
. ./benchlib.sh
set -e # Break on error
Modified: CalendarServer/trunk/contrib/performance/report
===================================================================
--- CalendarServer/trunk/contrib/performance/report 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/report 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,4 +1,20 @@
#!/usr/bin/python
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from report import main
main()
Modified: CalendarServer/trunk/contrib/performance/report.py
===================================================================
--- CalendarServer/trunk/contrib/performance/report.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/report.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys, pickle
from benchlib import select
Modified: CalendarServer/trunk/contrib/performance/report_principals.py
===================================================================
--- CalendarServer/trunk/contrib/performance/report_principals.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/report_principals.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
"""
Benchmark a server's response to a simple displayname startswith
Modified: CalendarServer/trunk/contrib/performance/reupload.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/reupload.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/reupload.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/bin/bash -x
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
BENCHMARKS="event_move event_delete_attendee event_add_attendee event_change_date event_change_summary event_delete vfreebusy event"
for rev in 6446; do
Modified: CalendarServer/trunk/contrib/performance/run.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/run.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/run.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,2 +1,19 @@
#!/bin/bash
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
PYTHONPATH=$PYTHONPATH:~/Projects/CalendarServer/Twisted "$@"
Modified: CalendarServer/trunk/contrib/performance/sample-many.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/sample-many.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/sample-many.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/bin/bash
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
for i in `python -c "for i in range($START, $STOP, $STEP): print i,"`; do
./sample.sh $i ~/Projects/CalendarServer/trunk/data/Logs "$1"
done
Modified: CalendarServer/trunk/contrib/performance/sample.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/sample.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/sample.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/bin/bash -x
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
. ./benchlib.sh
sudo -v # Force up to date sudo token before the user walks away
Modified: CalendarServer/trunk/contrib/performance/setbackend
===================================================================
--- CalendarServer/trunk/contrib/performance/setbackend 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/setbackend 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,4 +1,20 @@
#!/usr/bin/python
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from setbackend import main
raise SystemExit(main())
Modified: CalendarServer/trunk/contrib/performance/setbackend.py
===================================================================
--- CalendarServer/trunk/contrib/performance/setbackend.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/setbackend.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys
from xml.etree import ElementTree
from xml.etree import ElementPath
Modified: CalendarServer/trunk/contrib/performance/speedcenter.tac
===================================================================
--- CalendarServer/trunk/contrib/performance/speedcenter.tac 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/speedcenter.tac 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
from twisted.python.modules import getModule
from twisted.application.service import Application
Modified: CalendarServer/trunk/contrib/performance/sql_measure.d
===================================================================
--- CalendarServer/trunk/contrib/performance/sql_measure.d 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/sql_measure.d 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+/*
+ * Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
/*
* Make almost all query strings fit. Please don't have SQL longer than this. :(
Modified: CalendarServer/trunk/contrib/performance/sqlwatch
===================================================================
--- CalendarServer/trunk/contrib/performance/sqlwatch 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/sqlwatch 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,20 @@
#!/usr/bin/python
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from sqlwatch import main
main()
Modified: CalendarServer/trunk/contrib/performance/sqlwatch.py
===================================================================
--- CalendarServer/trunk/contrib/performance/sqlwatch.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/sqlwatch.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
import sys, signal, time
Modified: CalendarServer/trunk/contrib/performance/stackedbar.py
===================================================================
--- CalendarServer/trunk/contrib/performance/stackedbar.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/stackedbar.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,4 +1,21 @@
#!/usr/bin/env python
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
# a stacked bar plot with errorbars
import numpy as np
import matplotlib.pyplot as plt
Modified: CalendarServer/trunk/contrib/performance/stats.py
===================================================================
--- CalendarServer/trunk/contrib/performance/stats.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/stats.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
import sqlparse
Modified: CalendarServer/trunk/contrib/performance/sudo-run.sh
===================================================================
--- CalendarServer/trunk/contrib/performance/sudo-run.sh 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/sudo-run.sh 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,2 +1,19 @@
#!/bin/bash
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
sudo ./run.sh "$@"
Modified: CalendarServer/trunk/contrib/performance/svn-committime
===================================================================
--- CalendarServer/trunk/contrib/performance/svn-committime 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/svn-committime 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/usr/bin/python
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys, datetime
import pysvn
wc = sys.argv[1]
Modified: CalendarServer/trunk/contrib/performance/svn-revno
===================================================================
--- CalendarServer/trunk/contrib/performance/svn-revno 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/svn-revno 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,5 +1,21 @@
#!/usr/bin/python
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys
import pysvn
print pysvn.Client().info(sys.argv[1])['revision'].number
Modified: CalendarServer/trunk/contrib/performance/test_event_change_date.py
===================================================================
--- CalendarServer/trunk/contrib/performance/test_event_change_date.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/test_event_change_date.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
import datetime
Modified: CalendarServer/trunk/contrib/performance/test_stats.py
===================================================================
--- CalendarServer/trunk/contrib/performance/test_stats.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/test_stats.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,18 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
from unittest import TestCase
Modified: CalendarServer/trunk/contrib/performance/upload
===================================================================
--- CalendarServer/trunk/contrib/performance/upload 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/upload 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,20 @@
#!/usr/bin/python
+
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
from upload import main
raise SystemExit(main())
Modified: CalendarServer/trunk/contrib/performance/upload.py
===================================================================
--- CalendarServer/trunk/contrib/performance/upload.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/upload.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
import sys
import pickle
Modified: CalendarServer/trunk/contrib/performance/vfreebusy.py
===================================================================
--- CalendarServer/trunk/contrib/performance/vfreebusy.py 2010-11-18 17:54:27 UTC (rev 6650)
+++ CalendarServer/trunk/contrib/performance/vfreebusy.py 2010-11-18 19:29:53 UTC (rev 6651)
@@ -1,3 +1,19 @@
+##
+# Copyright (c) 2010 Apple Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+##
+
"""
Benchmark a server's handling of VFREEBUSY requests.
"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101118/3016f8e6/attachment-0001.html>
More information about the calendarserver-changes
mailing list