aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/httpd.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-11 14:22:07 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-11 14:25:55 +0100
commit5d6a470ce0c7d334205293de9b596a5ea4eb2e8c (patch)
treefaaff064ca49524167e2f1933a055ee816280946 /src/benchmarks/httpd.py
parent60b860ce3619d5f165bf8eda6ad596d5d458d1e2 (diff)
downloadallocbench-5d6a470ce0c7d334205293de9b596a5ea4eb2e8c.tar.gz
allocbench-5d6a470ce0c7d334205293de9b596a5ea4eb2e8c.zip
cleanup plot code
* use str.format instead of eval for plot labels * use meaningful variable names * add license header * add some doc strings
Diffstat (limited to 'src/benchmarks/httpd.py')
-rw-r--r--src/benchmarks/httpd.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py
index 2a848c5..2138834 100644
--- a/src/benchmarks/httpd.py
+++ b/src/benchmarks/httpd.py
@@ -62,25 +62,25 @@ class BenchmarkHTTPD(Benchmark):
def summary(self):
plt.plot_fixed_arg(self,
"{requests}",
- xlabel='"threads"',
- ylabel='"requests/s"',
+ xlabel="threads",
+ ylabel="requests/s",
autoticks=False,
filepostfix="requests",
- title='perm.site + ": requests/s"')
+ title="{perm.site}: requests/s")
plt.plot_fixed_arg(self,
"{nginx_vmhwm}",
- xlabel='"threads"',
- ylabel='"VmHWM in KB"',
- title='perm.site + ": nginx memory usage"',
+ xlabel="threads",
+ ylabel="VmHWM in KB",
+ title="{perm.site}: nginx memory usage",
filepostfix="httpd_vmhwm",
autoticks=False)
plt.plot_fixed_arg(self,
"{php-fpm_vmhwm}",
- xlabel='"threads"',
- ylabel='"VmHWM in KB"',
- title='perm.site + ": php-fpm memory usage"',
+ xlabel="threads",
+ ylabel="VmHWM in KB",
+ title="{perm.site}: php-fpm memory usage",
filepostfix="php-fpm_vmhwm",
autoticks=False)