From e27ec8f7d77d155dbc77718bfb40dce7b1ae6859 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 11 Feb 2020 15:05:37 +0100 Subject: replace eval with str.format labels in loop.py --- src/benchmarks/loop.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py index 75c56ee..ec520a4 100644 --- a/src/benchmarks/loop.py +++ b/src/benchmarks/loop.py @@ -60,8 +60,8 @@ class BenchmarkLoop(Benchmark): # Speed plt.plot_fixed_arg(self, "perm.nthreads / ({task-clock}/1000)", - ylabel='"MOPS/cpu-second"', - title='"Loop: " + arg + " " + str(arg_value)', + ylabel="MOPS/cpu-second", + title="Loop: {arg} {arg_value}", filepostfix="time", autoticks=False) @@ -69,8 +69,8 @@ class BenchmarkLoop(Benchmark): plt.plot_fixed_arg( self, "({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel='"L1 misses in %"', - title='"Loop l1 cache misses: " + arg + " " + str(arg_value)', + ylabel="L1 misses in %", + title="Loop l1 cache misses: {arg} {arg_value}", filepostfix="l1misses", autoticks=False) @@ -96,9 +96,9 @@ class BenchmarkLoop(Benchmark): args=self.results["args"]), "int(perm.nthreads)", "perm.nthreads / ({task-clock}/1000)", - xlabel='"Threads"', - ylabel='"MOPS/cpu-second"', - title='"Loop: 1024B"', + xlabel="Threads", + ylabel="MOPS/cpu-second", + title="Loop: 1024B", postfix='mops_1024B') # create pgfplot legend -- cgit v1.2.3