Author: jmorliaguet
Date: Wed Feb  8 21:29:28 2006
New Revision: 2324

Added:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/__init__.py
   (contents, props changed)
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/browser.py
   (contents, props changed)
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/configure.zcml
   (contents, props changed)
Modified:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/configure.zcml
Log:

- added I/O benchmarks for storage adapters



Added: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/__init__.py
==============================================================================
--- (empty file)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/__init__.py
       Wed Feb  8 21:29:28 2006
@@ -0,0 +1 @@
+#

Added: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/browser.py
==============================================================================
--- (empty file)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/browser.py
        Wed Feb  8 21:29:28 2006
@@ -0,0 +1,17 @@
+
+import time
+
+from zope.app.publisher.browser import BrowserView
+
+from cpsskins import minjson as json
+
+class Views(BrowserView):
+
+    def getData1(self):
+        return json.write(data)
+
+    def setData1(self, data):
+        data = json.read(data)
+
+        return json.write(data)
+

Added: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/configure.zcml
==============================================================================
--- (empty file)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/benchmarks/configure.zcml
    Wed Feb  8 21:29:28 2006
@@ -0,0 +1,30 @@
+<configure
+    xmlns:browser="http://namespaces.zope.org/browser";>
+
+  <browser:page
+      for="*"
+      layer="cpsskins-test"
+      name="cpsskins_benchmarks.html"
+      permission="zope.Public"
+      template="cpsskins_benchmarks.pt"
+  />
+
+  <browser:pages
+      layer="cpsskins-test"
+      for="*"
+      class=".browser.Views"
+      permission="zope.Public">
+
+    <browser:page
+        name="getData1"
+        attribute="getData1"
+    />
+
+    <browser:page
+        name="setData1"
+        attribute="setData1"
+    />
+
+  </browser:pages>
+
+</configure>

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/configure.zcml
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/configure.zcml
       (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/configure.zcml
       Wed Feb  8 21:29:28 2006
@@ -6,4 +6,6 @@
 
   <include package=".aggregator" />
 
+  <include package=".benchmarks" />
+
 </configure>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to