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/cfrac.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'src/benchmarks/cfrac.py') diff --git a/src/benchmarks/cfrac.py b/src/benchmarks/cfrac.py index e594055..dfd87d6 100644 --- a/src/benchmarks/cfrac.py +++ b/src/benchmarks/cfrac.py @@ -14,7 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with allocbench. If not, see . - """cfrac is a single threaded implementation of the continued fraction factorization algorithm, described by Zorn and Grunwald in their paper "Empirical Measurements of Six Allocation-intensive C Programs" in 1992. @@ -61,6 +60,7 @@ API function as well as memory placement strategies with good data locality. from src.benchmark import Benchmark + class BenchmarkCfrac(Benchmark): """Definition of the cfrac benchmark""" def __init__(self): @@ -81,11 +81,12 @@ class BenchmarkCfrac(Benchmark): filepostfix="time") # L1 cache misses - self.barplot_single_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel='"L1 misses in %"', - title='"Cfrac l1 cache misses"', - filepostfix="l1misses", - yerr=False) + self.barplot_single_arg( + "({L1-dcache-load-misses}/{L1-dcache-loads})*100", + ylabel='"L1 misses in %"', + title='"Cfrac l1 cache misses"', + filepostfix="l1misses", + yerr=False) # Memusage self.barplot_single_arg("{VmHWM}", @@ -93,12 +94,15 @@ class BenchmarkCfrac(Benchmark): title='"Cfrac 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