aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/cfrac.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/cfrac.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/cfrac.py')
-rw-r--r--src/benchmarks/cfrac.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/cfrac.py b/src/benchmarks/cfrac.py
index 07385eb..9b4bc64 100644
--- a/src/benchmarks/cfrac.py
+++ b/src/benchmarks/cfrac.py
@@ -80,7 +80,7 @@ class BenchmarkCfrac(Benchmark):
"{task-clock}/1000",
ylabel='"cpu-second"',
title='"Cfrac: runtime"',
- filepostfix="time")
+ file_postfix="time")
# L1 cache misses
plt.barplot_single_arg(
@@ -88,7 +88,7 @@ class BenchmarkCfrac(Benchmark):
"({L1-dcache-load-misses}/{L1-dcache-loads})*100",
ylabel="L1 misses in %",
title="Cfrac l1 cache misses",
- filepostfix="l1misses",
+ file_postfix="l1misses",
yerr=False)
# Memusage
@@ -96,7 +96,7 @@ class BenchmarkCfrac(Benchmark):
"{VmHWM}",
ylabel="VmHWM in KB",
title="Cfrac VmHWM",
- filepostfix="vmhwm")
+ file_postfix="vmhwm")
plt.write_tex_table(self, [{
"label": "Runtime [ms]",
@@ -107,7 +107,7 @@ class BenchmarkCfrac(Benchmark):
"expression": "{VmHWM}",
"sort": "<"
}],
- filepostfix="table")
+ file_postfix="table")
plt.export_stats_to_dataref(self, "task-clock")