diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-11 21:31:38 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-11 21:43:33 +0100 |
| commit | c9d168d6d45d57304c7dcbe4c5cbaf949385764c (patch) | |
| tree | 6a73e1c5dddb2c9a74f8c1582a535fa8ca046b81 /src/benchmarks/espresso.py | |
| parent | 372a5366458c88a3571b4b7a19db538bbf947c3d (diff) | |
| download | allocbench-c9d168d6d45d57304c7dcbe4c5cbaf949385764c.tar.gz allocbench-c9d168d6d45d57304c7dcbe4c5cbaf949385764c.zip | |
fmt benchmark definitions with yapf
Diffstat (limited to 'src/benchmarks/espresso.py')
| -rw-r--r-- | src/benchmarks/espresso.py | 36 |
1 files changed, 22 insertions, 14 deletions
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 <http://www.gnu.org/licenses/>. - """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") |
