aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/t_test1.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:14:54 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-03-09 19:14:54 +0100
commit0e467466b1171f162948e9aaa369c6117d915e05 (patch)
tree9037afdb2813a104c0d60cc49f572418215786c0 /src/benchmarks/t_test1.py
parent19362370c09dd4ac945ed7cfff07d91f0db95353 (diff)
downloadallocbench-0e467466b1171f162948e9aaa369c6117d915e05.tar.gz
allocbench-0e467466b1171f162948e9aaa369c6117d915e05.zip
improve matplotlib code
add new helper functions to get all y_values for a plot use seperate figures for each plot s/filepostfix/file_postfix/ to be consistent
Diffstat (limited to 'src/benchmarks/t_test1.py')
-rw-r--r--src/benchmarks/t_test1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/t_test1.py b/src/benchmarks/t_test1.py
index 119f2a5..f0856f6 100644
--- a/src/benchmarks/t_test1.py
+++ b/src/benchmarks/t_test1.py
@@ -45,7 +45,7 @@ class BenchmarkTTest1(Benchmark):
plt.plot_fixed_arg(self, yval,
ylabel='"Mops / CPU second"',
title='"T-Ttest1: " + arg + " " + str(arg_value)',
- filepostfix="time",
+ file_postfix="time",
autoticks=False)
# L1 cache misses
@@ -53,18 +53,18 @@ class BenchmarkTTest1(Benchmark):
"({L1-dcache-load-misses}/{L1-dcache-loads})*100",
ylabel='"L1 misses in %"',
title='"T-Test1 l1 cache misses: " + arg + " " + str(arg_value)',
- filepostfix="l1misses",
+ file_postfix="l1misses",
autoticks=False)
# Speed Matrix
- plt.write_best_doublearg_tex_table(self, yval, filepostfix="mops.matrix")
+ plt.write_best_doublearg_tex_table(self, yval, file_postfix="mops.matrix")
plt.write_tex_table(self, [{
"label": "MOPS/s",
"expression": yval,
"sort": ">"
}],
- filepostfix="mops.table")
+ file_postfix="mops.table")
plt.export_stats_to_csv(self, "task-clock")