[Erp5-report] r8502 - /erp5/trunk/utils/erp5mechanize/runBenchmarks.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 18 17:14:53 CEST 2006
Author: vincent
Date: Tue Jul 18 17:14:52 2006
New Revision: 8502
URL: http://svn.erp5.org?rev=8502&view=rev
Log:
Make usercount limit the total number of user, not the number of users by server. this allows a finer grained load increase testing.
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=8502&r1=8501&r2=8502&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/runBenchmarks.py (original)
+++ erp5/trunk/utils/erp5mechanize/runBenchmarks.py Tue Jul 18 17:14:52 2006
@@ -161,13 +161,14 @@
signal.signal(signal_number, sig_handler)
usercount = int(usercount)
for instance in instance_list:
- for pos in xrange(min(usercount, len(instance['user_list']))):
- user = instance['user_list'][pos]
- thread = BenchmarkThread(url=instance['url'], name=user['name'], password=user['password'], test_list=test_list)
- thread.setName('%s@%s' % (user['name'], instance['url']))
- if Lazyness is not None:
- thread.setLazyness(float(Lazyness))
- thread_list.append(thread)
+ for pos in xrange(len(instance['user_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)
+ thread.setName('%s@%s' % (user['name'], instance['url']))
+ if Lazyness is not None:
+ thread.setLazyness(float(Lazyness))
+ thread_list.append(thread)
print '%s: Starting %s threads' % (time(), len(thread_list))
[thread.start() for thread in thread_list] # Start all threads at 'once'.
More information about the Erp5-report
mailing list