From c9d168d6d45d57304c7dcbe4c5cbaf949385764c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 11 Dec 2019 21:31:38 +0100 Subject: fmt benchmark definitions with yapf --- src/benchmarks/espresso.py | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'src/benchmarks/espresso.py') diff --git a/src/benchmarks/espresso.py b/src/benchmarks/espresso.py index bd94b29..2f8b8bf 100644 --- a/src/benchmarks/espresso.py +++ b/src/benchmarks/espresso.py @@ -14,7 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with allocbench. If not, see . - """espresso is a single threaded programmable logic array analyzer, described by Zorn and Grunwald their paper "Empirical Measurements of Six Allocation-intensive C Programs" in 1992. @@ -61,14 +60,19 @@ import os from src.benchmark import Benchmark import src.globalvars + class BenchmarkEspresso(Benchmark): """Definition of the espresso benchmark for allocbench""" def __init__(self): name = "espresso" self.cmd = "espresso{binary_suffix} {file}" - self.args = {"file": [os.path.join(src.globalvars.benchsrcdir, name, - "largest.espresso")]} + self.args = { + "file": [ + os.path.join(src.globalvars.benchsrcdir, name, + "largest.espresso") + ] + } self.requirements = ["espresso"] super().__init__(name) @@ -81,11 +85,12 @@ class BenchmarkEspresso(Benchmark): filepostfix="time") # L1 cache misses - self.barplot_single_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel='"L1 misses in %"', - title='"Espresso l1 cache misses"', - filepostfix="l1misses", - yerr=False) + self.barplot_single_arg( + "({L1-dcache-load-misses}/{L1-dcache-loads})*100", + ylabel='"L1 misses in %"', + title='"Espresso l1 cache misses"', + filepostfix="l1misses", + yerr=False) # Memusage self.barplot_single_arg("{VmHWM}", @@ -93,12 +98,15 @@ class BenchmarkEspresso(Benchmark): title='"Espresso VmHWM"', filepostfix="vmhwm") - self.write_tex_table([{"label": "Runtime [ms]", - "expression": "{task-clock}", - "sort": "<"}, - {"label": "Memusage [KB]", - "expression": "{VmHWM}", - "sort": "<"}], + self.write_tex_table([{ + "label": "Runtime [ms]", + "expression": "{task-clock}", + "sort": "<" + }, { + "label": "Memusage [KB]", + "expression": "{VmHWM}", + "sort": "<" + }], filepostfix="table") self.export_stats_to_dataref("task-clock") -- cgit v1.2.3