aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/httpd.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/httpd.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/httpd.py')
-rw-r--r--src/benchmarks/httpd.py48
1 files changed, 27 insertions, 21 deletions
diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py
index 8332f27..c46461f 100644
--- a/src/benchmarks/httpd.py
+++ b/src/benchmarks/httpd.py
@@ -60,29 +60,35 @@ class BenchmarkHTTPD(Benchmark):
"Requests per second:\\s*(\\d*\\.\\d*) .*", stdout).group(1)
def summary(self):
- plt.plot_fixed_arg(self,
- "{requests}",
- xlabel="threads",
- ylabel="requests/s",
- autoticks=False,
- file_postfix="requests",
- title="{perm.site}: requests/s")
+ plt.plot(self,
+ "{requests}",
+ fig_options={
+ 'xlabel': "threads",
+ 'ylabel': "requests/s",
+ 'title': "{perm.site}: requests/s"
+ 'autoticks': False,
+ },
+ file_postfix="requests")
- plt.plot_fixed_arg(self,
- "{nginx_vmhwm}",
- xlabel="threads",
- ylabel="VmHWM in KB",
- title="{perm.site}: nginx memory usage",
- file_postfix="httpd_vmhwm",
- autoticks=False)
+ plt.plot(self,
+ "{nginx_vmhwm}",
+ fig_options={
+ 'xlabel': "threads",
+ 'ylabel': "VmHWM in KB",
+ 'title': "{perm.site}: nginx memory usage",
+ 'autoticks': False,
+ },
+ file_postfix="httpd_vmhwm")
- plt.plot_fixed_arg(self,
- "{php-fpm_vmhwm}",
- xlabel="threads",
- ylabel="VmHWM in KB",
- title="{perm.site}: php-fpm memory usage",
- file_postfix="php-fpm_vmhwm",
- autoticks=False)
+ plt.plot(self,
+ "{php-fpm_vmhwm}",
+ fig_options={
+ 'xlabel': "threads",
+ 'ylabel': "VmHWM in KB",
+ 'title': "{perm.site}: php-fpm memory usage",
+ 'autoticks': False,
+ },
+ file_postfix="php-fpm_vmhwm")
httpd = BenchmarkHTTPD()