Commit f5289156 authored by Julien Muchembled's avatar Julien Muchembled

_testInvalidationBug: log speed of creation of objects

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35436 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7dcc6c30
...@@ -72,7 +72,15 @@ for x in xrange(0, 1): ...@@ -72,7 +72,15 @@ for x in xrange(0, 1):
log('Created Organisations', (context,id_list)) log('Created Organisations', (context,id_list))
#log('All organisations', (context,[x for x in context.objectIds()])) #log('All organisations', (context,[x for x in context.objectIds()]))
context.activate(activity='SQLQueue').create_script() context.activate(activity='SQLQueue').create_script()
log('Organisation #', len(context))
count = len(context)
log('Organisation #', count)
if not (count % 500):
if count == 500:
context.setProperty('perf_start', DateTime())
else:
log('creation speed: %s obj/s' % ((count - 500) /
(86400 * (DateTime() - context.getProperty('perf_start')))))
""") """)
for x in xrange(0,200): for x in xrange(0,200):
module.activate(activity='SQLQueue').create_script() module.activate(activity='SQLQueue').create_script()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment