aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/keydb.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/keydb.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/keydb.py')
-rw-r--r--src/benchmarks/keydb.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/benchmarks/keydb.py b/src/benchmarks/keydb.py
index 343d356..8502e21 100644
--- a/src/benchmarks/keydb.py
+++ b/src/benchmarks/keydb.py
@@ -110,14 +110,20 @@ class BenchmarkKeyDB(Benchmark):
os.remove("dump.rdb")
def summary(self):
- plt.plot_fixed_arg(self, "{totals_ops}",
- ylabel="'OPS/second'",
- title="KeyDB Operations - {arg}: {arg_value}",
- file_postfix="total_ops")
-
- plt.plot_fixed_arg(self, "{keydb_vmhwm}",
- ylabel="'VmHWM [KB]'",
- title="KeyDB Memusage - {arg}: {arg_value}",
- file_postfix="vmhwm")
+ plt.plot(self,
+ "{totals_ops}",
+ fig_options={
+ 'ylabel': "'OPS/second'",
+ 'title': "KeyDB Operations - {arg}: {arg_value}",
+ },
+ file_postfix="total_ops")
+
+ plt.plot(self,
+ "{keydb_vmhwm}",
+ fig_options={
+ 'ylabel': "'VmHWM [KB]'",
+ 'title': "KeyDB Memusage - {arg}: {arg_value}",
+ },
+ file_postfix="vmhwm")
keydb = BenchmarkKeyDB()