[Erp5-report] r8514 - /erp5/trunk/utils/erp5mechanize/runBenchmarks.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 19 09:15:23 CEST 2006
Author: vincent
Date: Wed Jul 19 09:15:19 2006
New Revision: 8514
URL: http://svn.erp5.org?rev=8514&view=rev
Log:
Correct repetition number.
Equilibrate load among zope instances.
Modified:
erp5/trunk/utils/erp5mechanize/runBenchmarks.py
Modified: erp5/trunk/utils/erp5mechanize/runBenchmarks.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/runBenchmarks.py?rev=8514&r1=8513&r2=8514&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/runBenchmarks.py (original)
+++ erp5/trunk/utils/erp5mechanize/runBenchmarks.py Wed Jul 19 09:15:19 2006
@@ -157,13 +157,19 @@
if load is not None:
load_file = LogFile(load)
del load
+ temp_list = []
for repetition in xrange(int(Repeat)): # 0 mean only one execution, 1 means two executions, etc.
- test_list.extend(test_list)
+ temp_list.extend(test_list)
+ test_list = temp_list
+ del temp_list
for signal_number in (signal.SIGHUP, signal.SIGSEGV, signal.SIGTERM): # All signal who could lead to 'soft' program termination
signal.signal(signal_number, sig_handler)
usercount = int(usercount)
+ maximum_length = 0
for instance in instance_list:
- for pos in xrange(len(instance['user_list'])):
+ maximum_length = max(maximum_length, len(instance['user_list']))
+ for pos in xrange(maximum_length):
+ for instance in instance_list:
if len(thread_list) < usercount:
user = instance['user_list'][pos]
thread = BenchmarkThread(url=instance['url'], name=user['name'], password=user['password'], test_list=test_list)
More information about the Erp5-report
mailing list