diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-20 12:19:44 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-20 12:19:44 +0100 |
| commit | 9c9dd922379312fe744307a71ad1b8715098e18b (patch) | |
| tree | 22feb63adec67c93bbe1e3283dee8510a627896f /src/benchmarks/httpd.py | |
| parent | 42f029418a28e98788c95098837dfb45ea2bfffc (diff) | |
| parent | 40860ce5b8134618dad6457049d533aa211b0139 (diff) | |
| download | allocbench-9c9dd922379312fe744307a71ad1b8715098e18b.tar.gz allocbench-9c9dd922379312fe744307a71ad1b8715098e18b.zip | |
Merge branch 'pgfplots'
Diffstat (limited to 'src/benchmarks/httpd.py')
| -rw-r--r-- | src/benchmarks/httpd.py | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py index 64f8e11..2138834 100644 --- a/src/benchmarks/httpd.py +++ b/src/benchmarks/httpd.py @@ -20,6 +20,7 @@ import re from src.benchmark import Benchmark import src.facter +import src.plots as plt class BenchmarkHTTPD(Benchmark): @@ -59,28 +60,29 @@ class BenchmarkHTTPD(Benchmark): "Requests per second:\\s*(\\d*\\.\\d*) .*", stdout).group(1) def summary(self): - allocators = self.results["allocators"] - - self.plot_fixed_arg("{requests}", - xlabel='"threads"', - ylabel='"requests/s"', - autoticks=False, - filepostfix="requests", - title='perm.site + ": requests/s"') - - self.plot_fixed_arg("{nginx_vmhwm}", - xlabel='"threads"', - ylabel='"VmHWM in KB"', - title='perm.site + ": nginx memory usage"', - filepostfix="httpd_vmhwm", - autoticks=False) - - self.plot_fixed_arg("{php-fpm_vmhwm}", - xlabel='"threads"', - ylabel='"VmHWM in KB"', - title='perm.site + ": php-fpm memory usage"', - filepostfix="php-fpm_vmhwm", - autoticks=False) + plt.plot_fixed_arg(self, + "{requests}", + xlabel="threads", + ylabel="requests/s", + autoticks=False, + filepostfix="requests", + title="{perm.site}: requests/s") + + plt.plot_fixed_arg(self, + "{nginx_vmhwm}", + 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", + filepostfix="php-fpm_vmhwm", + autoticks=False) httpd = BenchmarkHTTPD() |
