diff options
Diffstat (limited to 'src/benchmarks/t_test1.py')
| -rw-r--r-- | src/benchmarks/t_test1.py | 27 |
1 files changed, 15 insertions, 12 deletions
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 <http://www.gnu.org/licenses/>. - """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") |
