[Erp5-report] r27322 - /erp5/trunk/products/ERP5Type/tests/testCacheTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 1 19:29:53 CEST 2009


Author: kazuhiko
Date: Mon Jun  1 19:29:51 2009
New Revision: 27322

URL: http://svn.erp5.org?rev=27322&view=rev
Log:
revert unrelated change in r.27287, sorry.

Modified:
    erp5/trunk/products/ERP5Type/tests/testCacheTool.py

Modified: erp5/trunk/products/ERP5Type/tests/testCacheTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testCacheTool.py?rev=27322&r1=27321&r2=27322&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testCacheTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testCacheTool.py [utf8] Mon Jun  1 19:29:51 2009
@@ -190,7 +190,7 @@
     py_script_id = "testCachedMethod"
     py_script_obj = getattr(portal, py_script_id)
     for cf_name in ('ram_cache_factory',
-#                    'distributed_ram_cache_factory',
+                    'distributed_ram_cache_factory',
                     'sql_cache_factory',
                     'zodb_cache_factory',):
       my_cache = CachingMethod(py_script_obj,
@@ -229,8 +229,7 @@
 
     ## 2nd call - should be cached now
     start = time.time()
-    for i in xrange(100):
-      cached =  my_cache(nb_iterations, portal_path=('', portal.getId()))
+    cached =  my_cache(nb_iterations, portal_path=('', portal.getId()))
     end = time.time()
     calculation_time = end-start
     print "\n\tCalculation time (2nd call)", calculation_time




More information about the Erp5-report mailing list