aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/redis.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/redis.py')
-rw-r--r--src/benchmarks/redis.py26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/benchmarks/redis.py b/src/benchmarks/redis.py
index cfad489..265d825 100644
--- a/src/benchmarks/redis.py
+++ b/src/benchmarks/redis.py
@@ -81,15 +81,23 @@ class BenchmarkRedis(Benchmark):
os.remove("dump.rdb")
def summary(self):
- plt.barplot_single_arg(self, "{requests}",
- ylabel='"requests per s"',
- title='"redis throughput"',
- file_postfix="requests")
-
- plt.barplot_single_arg(self, "{redis_vmhwm}",
- ylabel='"VmHWM in KB"',
- title='"redis memusage"',
- file_postfix="vmhwm")
+ plt.plot(self,
+ "{requests}",
+ plot_type='bar',
+ fig_options={
+ 'ylabel': 'requests per s',
+ 'title': 'redis throughput',
+ },
+ file_postfix="requests")
+
+ plt.plot(self,
+ "{redis_vmhwm}",
+ plot_type='bar',
+ fig_options={
+ 'ylabel': '"VmHWM in KB"',
+ 'title': '"redis memusage"',
+ },
+ file_postfix="vmhwm")
plt.export_stats_to_dataref(self, "requests")