diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-11 15:05:37 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-11 15:05:37 +0100 |
| commit | e27ec8f7d77d155dbc77718bfb40dce7b1ae6859 (patch) | |
| tree | 9f33af191cf3e4fa89e5d8e3dd17f07439aa07f3 | |
| parent | f4eed31a2b07d27fd8ba0d924fe643d492993c2b (diff) | |
| download | allocbench-e27ec8f7d77d155dbc77718bfb40dce7b1ae6859.tar.gz allocbench-e27ec8f7d77d155dbc77718bfb40dce7b1ae6859.zip | |
replace eval with str.format labels in loop.py
| -rw-r--r-- | src/benchmarks/loop.py | 14 |
1 files 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 |
