mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
wa/workloads: Update to use threads
parameter
Update workloads to use `threads` parameter to try and keep configuration more consistent across workloads.
This commit is contained in:
@@ -58,7 +58,7 @@ class Sysbench(Workload):
|
||||
Parameter('test', kind=str, default='cpu',
|
||||
allowed_values=['fileio', 'cpu', 'memory', 'threads', 'mutex'],
|
||||
description='sysbench test to run'),
|
||||
Parameter('num_threads', kind=int, default=8,
|
||||
Parameter('threads', kind=int, default=8, aliases=['num_threads'],
|
||||
description='''
|
||||
The number of threads sysbench will launch.
|
||||
'''),
|
||||
@@ -112,7 +112,7 @@ class Sysbench(Workload):
|
||||
def setup(self, context):
|
||||
self.host_results_file = None
|
||||
params = dict(test=self.test,
|
||||
num_threads=self.num_threads)
|
||||
num_threads=self.threads)
|
||||
if self.max_requests:
|
||||
params['max_requests'] = self.max_requests
|
||||
if self.max_time:
|
||||
|
Reference in New Issue
Block a user