mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
pep8: minor fixes in hackbench and ebizzy
This commit is contained in:
parent
dcea921907
commit
50c8c4da34
@ -23,11 +23,12 @@ results_txt = 'ebizzy_results.txt'
|
||||
record_regex = re.compile(r'(?P<record>\d+) records/s')
|
||||
result_regex = re.compile(r'(?P<metric>\D+)(?P<value>\d+.*\b)(?P<unit>\S+)')
|
||||
|
||||
|
||||
class Ebizzy(Workload):
|
||||
|
||||
name = 'ebizzy'
|
||||
description = """
|
||||
ebizzy is designed to generate a workload resembling common web
|
||||
ebizzy is designed to generate a workload resembling common web
|
||||
application server workloads. It is highly threaded, has a large in-memory
|
||||
working set with low locality, and allocates and deallocates memory frequently.
|
||||
When running most efficiently, it will max out the CPU.
|
||||
@ -65,7 +66,6 @@ class Ebizzy(Workload):
|
||||
self.command = self.command.format(self.device_binary, self.threads, self.seconds,
|
||||
self.chunks, self.extra_params, self.ebizzy_results)
|
||||
|
||||
|
||||
def run(self, context):
|
||||
self.device.execute(self.command, timeout=self.run_timeout)
|
||||
|
||||
|
@ -26,7 +26,8 @@ regex_map = {"total_groups": (re.compile(r'(\d+) groups'), "groups"),
|
||||
"total_messages": (re.compile(r'(\d+) messages'), "messages"),
|
||||
"total_bytes": (re.compile(r'(\d+) bytes'), "bytes"),
|
||||
"test_time": (re.compile(r'Time: (\d+.*)'), "seconds")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Hackbench(Workload):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user