Commit e31901a3 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Refactor BenchmarkResult to allow ERP5/File results output


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@45923 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd4972b3
This diff is collapsed.
......@@ -150,14 +150,20 @@ class PerformanceTester(object):
PerformanceTester._check_parsed_arguments(namespace)
return namespace
def getResultClass(self):
from benchmark import CSVBenchmarkResult
return CSVBenchmarkResult
def _run_constant(self, nb_users):
process_list = []
exit_msg_queue = multiprocessing.Queue(nb_users)
result_class = self.getResultClass()
for user_index in range(nb_users):
process = BenchmarkProcess(exit_msg_queue, nb_users, user_index,
self._argument_namespace,
self._publish_method)
process = BenchmarkProcess(exit_msg_queue, result_class,
self._argument_namespace, nb_users,
user_index)
process_list.append(process)
for process in process_list:
......
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