1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

pep8: minor fixes in hackbench and ebizzy

This commit is contained in:
Sergei Trofimov 2015-04-28 08:30:43 +01:00
parent dcea921907
commit 50c8c4da34
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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):