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/t_test1.py | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/benchmarks/t_test1.py') diff --git a/src/benchmarks/t_test1.py b/src/benchmarks/t_test1.py index cbb9051..bdc7c83 100644 --- a/src/benchmarks/t_test1.py +++ b/src/benchmarks/t_test1.py @@ -14,7 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with allocbench. If not, see . - """Definition of the commonly used t-test1 allocator test""" from src.benchmark import Benchmark @@ -25,14 +24,15 @@ class BenchmarkTTest1(Benchmark): This benchmark from ptmalloc2 allocates and frees n bins in t concurrent threads. """ - def __init__(self): name = "t_test1" self.cmd = "t-test1 {nthreads} {nthreads} 1000000 {maxsize}" - self.args = {"maxsize": [2 ** x for x in range(6, 18)], - "nthreads": Benchmark.scale_threads_for_cpus(2)} + self.args = { + "maxsize": [2**x for x in range(6, 18)], + "nthreads": Benchmark.scale_threads_for_cpus(2) + } self.requirements = ["t-test1"] super().__init__(name) @@ -48,18 +48,21 @@ class BenchmarkTTest1(Benchmark): autoticks=False) # L1 cache misses - self.plot_fixed_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel='"L1 misses in %"', - title='"T-Test1 l1 cache misses: " + arg + " " + str(arg_value)', - filepostfix="l1misses", - autoticks=False) + self.plot_fixed_arg( + "({L1-dcache-load-misses}/{L1-dcache-loads})*100", + ylabel='"L1 misses in %"', + title='"T-Test1 l1 cache misses: " + arg + " " + str(arg_value)', + filepostfix="l1misses", + autoticks=False) # Speed Matrix self.write_best_doublearg_tex_table(yval, filepostfix="mops.matrix") - self.write_tex_table([{"label": "MOPS/s", - "expression": yval, - "sort": ">"}], + self.write_tex_table([{ + "label": "MOPS/s", + "expression": yval, + "sort": ">" + }], filepostfix="mops.table") self.export_stats_to_csv("task-clock") -- cgit v1.2.3