diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-07 15:54:25 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-07 15:54:25 +0200 |
| commit | fe26e05dfba7b6c4a3e28b2be6dc369426277790 (patch) | |
| tree | e724a1264ea3e1f07f327d6d27e0c5afafa09d23 /src/benchmarks/redis.py | |
| parent | 57d94cd47a4a5c187aed2245b0f213ba520f2405 (diff) | |
| download | allocbench-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/redis.py')
| -rw-r--r-- | src/benchmarks/redis.py | 26 |
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") |
