diff options
Diffstat (limited to 'src/benchmarks/keydb.py')
| -rw-r--r-- | src/benchmarks/keydb.py | 24 |
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() |
