1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-17 04:23:29 +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
wlauto/workloads
ebizzy
hackbench

@ -23,11 +23,12 @@ results_txt = 'ebizzy_results.txt'
record_regex = re.compile(r'(?P<record>\d+) records/s') 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+)') result_regex = re.compile(r'(?P<metric>\D+)(?P<value>\d+.*\b)(?P<unit>\S+)')
class Ebizzy(Workload): class Ebizzy(Workload):
name = 'ebizzy' name = 'ebizzy'
description = """ 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 application server workloads. It is highly threaded, has a large in-memory
working set with low locality, and allocates and deallocates memory frequently. working set with low locality, and allocates and deallocates memory frequently.
When running most efficiently, it will max out the CPU. 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.command = self.command.format(self.device_binary, self.threads, self.seconds,
self.chunks, self.extra_params, self.ebizzy_results) self.chunks, self.extra_params, self.ebizzy_results)
def run(self, context): def run(self, context):
self.device.execute(self.command, timeout=self.run_timeout) 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_messages": (re.compile(r'(\d+) messages'), "messages"),
"total_bytes": (re.compile(r'(\d+) bytes'), "bytes"), "total_bytes": (re.compile(r'(\d+) bytes'), "bytes"),
"test_time": (re.compile(r'Time: (\d+.*)'), "seconds") "test_time": (re.compile(r'Time: (\d+.*)'), "seconds")
} }
class Hackbench(Workload): class Hackbench(Workload):