aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/realloc.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/realloc.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/realloc.py')
-rw-r--r--src/benchmarks/realloc.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/benchmarks/realloc.py b/src/benchmarks/realloc.py
index bd8f801..d3375ff 100644
--- a/src/benchmarks/realloc.py
+++ b/src/benchmarks/realloc.py
@@ -34,10 +34,14 @@ class BenchmarkRealloc(Benchmark):
super().__init__(name)
def summary(self):
- plt.barplot_single_arg(self, "{task-clock}",
- ylabel='"task-clock in ms"',
- title='"realloc micro benchmark"',
- file_postfix="time")
+ plt.plot(self,
+ "{task-clock}",
+ plot_type='bar',
+ fig_options={
+ 'ylabel': 'task-clock in ms',
+ 'title': 'realloc micro benchmark',
+ },
+ file_postfix="time")
plt.export_stats_to_csv(self, "task-clock")
plt.export_stats_to_dataref(self, "task-clock")