aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/t_test1.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 15:54:25 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 15:54:25 +0200
commitfe26e05dfba7b6c4a3e28b2be6dc369426277790 (patch)
treee724a1264ea3e1f07f327d6d27e0c5afafa09d23 /src/benchmarks/t_test1.py
parent57d94cd47a4a5c187aed2245b0f213ba520f2405 (diff)
downloadallocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.tar.gz
allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.zip
unify plotting code
Now there is only a single plot function which takes a plot type as well as some plot and figure options.
Diffstat (limited to 'src/benchmarks/t_test1.py')
-rw-r--r--src/benchmarks/t_test1.py27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/benchmarks/t_test1.py b/src/benchmarks/t_test1.py
index f0856f6..2d86bdc 100644
--- a/src/benchmarks/t_test1.py
+++ b/src/benchmarks/t_test1.py
@@ -42,19 +42,24 @@ class BenchmarkTTest1(Benchmark):
# mops / per second
yval = "perm.nthreads / ({task-clock}/1000)"
# Speed
- plt.plot_fixed_arg(self, yval,
- ylabel='"Mops / CPU second"',
- title='"T-Ttest1: " + arg + " " + str(arg_value)',
- file_postfix="time",
- autoticks=False)
+ plt.plot(self,
+ yval,
+ fig_options={
+ 'ylabel': 'Mops / CPU second',
+ 'title': 't-test1: {fixed_part_str}',
+ 'autoticks': False,
+ },
+ file_postfix="time")
# L1 cache misses
- plt.plot_fixed_arg(self,
+ plt.plot(self,
"({L1-dcache-load-misses}/{L1-dcache-loads})*100",
- ylabel='"L1 misses in %"',
- title='"T-Test1 l1 cache misses: " + arg + " " + str(arg_value)',
- file_postfix="l1misses",
- autoticks=False)
+ fig_options={
+ 'ylabel': 'L1 misses in %',
+ 'title': 't-test1 l1 cache misses: {fixed_part_str}',
+ 'autoticks': False,
+ },
+ file_postfix="l1misses")
# Speed Matrix
plt.write_best_doublearg_tex_table(self, yval, file_postfix="mops.matrix")
@@ -64,7 +69,7 @@ class BenchmarkTTest1(Benchmark):
"expression": yval,
"sort": ">"
}],
- file_postfix="mops.table")
+ file_postfix="mops.table")
plt.export_stats_to_csv(self, "task-clock")